Un motore di ricerca WordPress per sviluppatori e autori di temi



networks_pre_query ›

Da5.2.0
Deprecaton/a
apply_filters_ref_array( 'networks_pre_query', array( $network_ids, &$this )
Parametri: (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.
    Richiesto:
  • (WP_Network_Query) $this The WP_Network_Query instance, passed by reference.
    Richiesto:
Definito a:
Codex:

Filter the sites array before the query takes place.

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





Sorgenti

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