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



pre_get_main_site_id › WordPress Filter Hooks

Da4.9.0
Deprecaton/a
apply_filters( 'pre_get_main_site_id', null, $this )
Parametri: (2)
  • (int|null) $main_site_id If a positive integer is returned, it is interpreted as the main site ID.
    Richiesto:
  • (WP_Network) $network The network object for which the main site was detected.
    Richiesto:
Definito a:
Codex:

Filters the main site ID.

Returning a positive integer will effectively short-circuit the function.





Sorgenti

$main_site_id = (int) apply_filters( 'pre_get_main_site_id', null, $this );