wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



current_user_can_for_blog › WordPress Function

Desde3.0.0
Obsoleto6.7.0
› current_user_can_for_blog ( $blog_id, $capability, $args )
Parâmetros: (3)
  • (int) $blog_id Site ID.
    Required: Yes
  • (string) $capability Capability name.
    Required: Yes
  • (mixed) $args Optional further parameters, typically starting with an object ID.
    Required: Yes
Retorna:
  • (bool) Whether the user has the given capability.
Definido em:
Codex:
Log de mudanças:
  • 5.3.0
  • 5.8.0

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



Fonte

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