wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



current_user_can_for_blog › WordPress Function

Depuis3.0.0
Dépréciée6.7.0
› current_user_can_for_blog ( $blog_id, $capability, $args )
Paramètres: (3)
  • (int) $blog_id Site ID.
    Requis: Oui
  • (string) $capability Capability name.
    Requis: Oui
  • (mixed) $args Optional further parameters, typically starting with an object ID.
    Requis: Oui
Retourne:
  • (bool) Whether the user has the given capability.
Défini(e) dans:
Codex:
Changelog:
  • 5.3.0
  • 5.8.0

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



Source

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