Filters the value of an existing network option before it is retrieved.
The dynamic portion of the hook name, $option, refers to the option name.
Returning a value other than false from the filter will short-circuit retrieval and return that value instead.
$pre_site_optionmixed
$default_value, which is used as the fallback value in the event the option doesn’t exist elsewhere in get_network_option() .$optionstring
$network_idint
$default_valuemixed
$pre = apply_filters( "pre_site_option_{$option}", false, $option, $network_id, $default_value );
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_site_option_option