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



set-screen-option › WordPress过滤钩子

Since5.4.2
已弃用n/a
› apply_filters( 'set-screen-option', $screen_option, $option, $value )
参数: (3)
  • () screen_option The value to save instead of the option value. Default false (to skip saving the current option).
    Required: Yes
  • () option The option name.
    Required: Yes
  • () value The option value.
    Required: Yes
查看:
  • set_screen_options()
定义在:
文档:

Filters a screen option value before it is set.

The filter can also be used to modify non-standard `[items]_per_page` settings. See the parent function for a full list of standard options. Returning false from the filter will skip saving the current option.




源码

$screen_option = apply_filters( 'set-screen-option', $screen_option, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores