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



can_add_user_to_blog › Filtr WordPress Hooks

Od4.9.0
Przestarzałyn/a
› apply_filters( 'can_add_user_to_blog', true, $user_id, $role, $blog_id )
Parametry: (4)
  • () retval True if the user should be added to the site, error object otherwise.
    Wymagane: Tak
  • () user_id User ID.
    Wymagane: Tak
  • () role User role.
    Wymagane: Tak
  • () blog_id Site ID.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters whether a user should be added to a site.





Źródło

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