wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



pre_get_main_site_id › Hooks de Filtros WordPress

Desde4.9.0
Obsoleton/a
apply_filters( 'pre_get_main_site_id', null, $this )
Parâmetros: (2)
  • (int|null) $main_site_id If a positive integer is returned, it is interpreted as the main site ID.
    Required: Yes
  • (WP_Network) $network The network object for which the main site was detected.
    Required: Yes
Definido em:
Codex:

Filters the main site ID.

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





Fonte

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