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



pre_get_main_site_id › WordPress Filter Hooks

Seit4.9.0
Veraltetn/v
apply_filters( 'pre_get_main_site_id', null, $this )
Parameter: (2)
  • (int|null) $main_site_id If a positive integer is returned, it is interpreted as the main site ID.
    Erforderlich: Ja
  • (WP_Network) $network The network object for which the main site was detected.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the main site ID.

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





Quellcode

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