wpseek.com
A WordPress-centric search engine for devs and theme authors



pre_add_site_option_{$option} › WordPress Filter Hooks

Since4.7.0
Deprecatedn/a
apply_filters( "pre_add_site_option_{$option}", $value, $option, $network_id )
Parameters: (3)
  • (mixed) $value Value of network option.
    Required: Yes
  • (string) $option Option name.
    Required: Yes
  • (int) $network_id ID of the network.
    Required: Yes
Defined at:
Codex:

Filters the value of a specific network option before it is added.

The dynamic portion of the hook name, $option, refers to the option name.





Source

$value = apply_filters( "pre_add_site_option_{$option}", $value, $option, $network_id );