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



pre_update_site_option_{$option} › WordPress Filter Hooks

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

Filters a specific network option before its value is updated.

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





Source

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