WordPress开发者和主题制作者的搜索引擎



pre_delete_site_option_{$option} ›

Since4.7.0
已弃用n/a
do_action( "pre_delete_site_option_{$option}", $option, $network_id )
参数: (2)
  • (string) $option Option name.
    Required: Yes
  • (int) $network_id ID of the network.
    Required: Yes
定义在:
文档:

Fires immediately before a specific network option is deleted.

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





源码

do_action( "pre_delete_site_option_{$option}", $option, $network_id );