wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



current_user_can_for_blog › WordPress Function

Seit3.0.0
Veraltet6.7.0
current_user_can_for_blog ( $blog_id, $capability, $args )
Parameter: (3)
  • (int) $blog_id Site ID.
    Erforderlich: Ja
  • (string) $capability Capability name.
    Erforderlich: Ja
  • (mixed) $args Optional further parameters, typically starting with an object ID.
    Erforderlich: Ja
Gibt zurück:
  • (bool) Whether the user has the given capability.
Definiert in:
Codex:
Changelog:
  • 5.3.0
  • 5.8.0

Returns whether the current user has the specified capability for a given site.



Quellcode

function current_user_can_for_blog( $blog_id, $capability, ...$args ) {
	return current_user_can_for_site( $blog_id, $capability, ...$args );
}