wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



current_user_can_for_blog › WordPress Function

Od3.0.0
Przestarzały6.7.0
› current_user_can_for_blog ( $blog_id, $capability, $args )
Parametry: (3)
  • (int) $blog_id Site ID.
    Wymagane: Tak
  • (string) $capability Capability name.
    Wymagane: Tak
  • (mixed) $args Optional further parameters, typically starting with an object ID.
    Wymagane: Tak
Powrót:
  • (bool) Whether the user has the given capability.
Zdefiniowane na:
Codex:
Dziennik zmian:
  • 5.3.0
  • 5.8.0

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



Źródło

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