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



pre_get_blogs_of_user › WordPress Filter Hooks

Da4.6.0
Deprecaton/a
apply_filters( 'pre_get_blogs_of_user', null, $user_id, $all )
Parametri: (3)
  • (null|object[]) $sites An array of site objects of which the user is a member.
    Richiesto:
  • (int) $user_id User ID.
    Richiesto:
  • (bool) $all Whether the returned array should contain all sites, including those marked 'deleted', 'archived', or 'spam'. Default false.
    Richiesto:
Definito a:
Codex:

Filters the list of a user's sites before it is populated.

Returning a non-null value from the filter will effectively short circuit get_blogs_of_user(), returning that value instead.





Sorgenti

$sites = apply_filters( 'pre_get_blogs_of_user', null, $user_id, $all );