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



pre_get_blogs_of_user ›

Od4.6.0
Przestarzałyn/a
apply_filters( 'pre_get_blogs_of_user', null, $user_id, $all )
Parametry: (3)
  • (null|array) $sites An array of site objects of which the user is a member.
    Wymagane: Tak
  • (int) $user_id User ID.
    Wymagane: Tak
  • (bool) $all Whether the returned array should contain all sites, including those marked 'deleted', 'archived', or 'spam'. Default false.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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

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





Źródło

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