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



can_add_user_to_blog › WordPress Filter Hooks

Da4.9.0
Deprecaton/a
apply_filters( 'can_add_user_to_blog', true, $user_id, $role, $blog_id )
Parametri: (4)
  • (true|WP_Error) $retval True if the user should be added to the site, error object otherwise.
    Richiesto:
  • (int) $user_id User ID.
    Richiesto:
  • (string) $role User role.
    Richiesto:
  • (int) $blog_id Site ID.
    Richiesto:
Definito a:
Codex:

Filters whether a user should be added to a site.





Sorgenti

$can_add_user = apply_filters( 'can_add_user_to_blog', true, $user_id, $role, $blog_id );