wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



set_screen_option_{$option} › Hooks de Filtros WordPress

Desde5.4.2
Obsoleton/a
apply_filters( "set_screen_option_{$option}", $screen_option, $option, $value )
Parâmetros: (3)
  • (mixed) $screen_option The value to save instead of the option value. Default false (to skip saving the current option).
    Required: Yes
  • (string) $option The option name.
    Required: Yes
  • (int) $value The option value.
    Required: Yes
Definido em:
Codex:

Filters a screen option value before it is set.

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

Returning false from the filter will skip saving the current option.





Fonte

$value = apply_filters( "set_screen_option_{$option}", $screen_option, $option, $value );