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)
  • () retval True if the user should be added to the site, error object otherwise.
    Richiesto: Sì
  • () user_id User ID.
    Richiesto: Sì
  • () role User role.
    Richiesto: Sì
  • () blog_id Site ID.
    Richiesto: Sì
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 );