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



pre_wp_load_alloptions › Hooks de Filtros WordPress

Desde6.2.0
Obsoleton/a
apply_filters( 'pre_wp_load_alloptions', null, $force_cache )
Parâmetros: (2)
  • (array|null) $alloptions An array of alloptions. Default null.
    Required: Yes
  • (bool) $force_cache Whether to force an update of the local cache from the persistent cache. Default false.
    Required: Yes
Definido em:
Codex:

Filters the array of alloptions before it is populated.

Returning an array from the filter will effectively short circuit wp_load_alloptions(), returning that value instead.





Fonte

$alloptions = apply_filters( 'pre_wp_load_alloptions', null, $force_cache );