wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



pre_get_main_site_id › Les Filtres WordPress

Depuis4.9.0
Dépréciéen/a
apply_filters( 'pre_get_main_site_id', null, $this )
Paramètres: (2)
  • (int|null) $main_site_id If a positive integer is returned, it is interpreted as the main site ID.
    Requis: Oui
  • (WP_Network) $network The network object for which the main site was detected.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the main site ID.

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





Source

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