Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



networks_pre_query ›

Seit5.2.0
Veraltetn/v
apply_filters_ref_array( 'networks_pre_query', array( $network_ids, &$this )
Parameter: (2)
  • (array|null) $site_ids Return an array of site data to short-circuit WP's site query, or null to allow WP to run its normal queries.
    Erforderlich: Ja
  • (WP_Network_Query) $this The WP_Network_Query instance, passed by reference.
    Erforderlich: Ja
Definiert in:
Codex:

Filter the sites array before the query takes place.

Return a non-null value to bypass WordPress's default site queries.





Quellcode

$network_ids = apply_filters_ref_array( 'networks_pre_query', array( $network_ids, &$this ) );