wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



current_user_can_for_blog › WordPress Function

Da3.0.0
Deprecato6.7.0
› current_user_can_for_blog ( $blog_id, $capability, $args )
Parametri: (3)
  • (int) $blog_id Site ID.
    Richiesto: Sì
  • (string) $capability Capability name.
    Richiesto: Sì
  • (mixed) $args Optional further parameters, typically starting with an object ID.
    Richiesto: Sì
Ritorna:
  • (bool) Whether the user has the given capability.
Definito a:
Codex:
ChangeLog:
  • 5.3.0
  • 5.8.0

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



Sorgenti

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