Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



set-screen-option ›

Seit2.8.0
Veraltetn/v
apply_filters( 'set-screen-option', false, $option, $value )
Parameter: (3)
  • (bool) $keep Whether to save or skip saving the screen option value. Default false.
    Erforderlich: Ja
  • (string) $option The option name.
    Erforderlich: Ja
  • (int) $value The number of rows to use.
    Erforderlich: Ja
Siehe:
  • set_screen_options()
Definiert in:
Codex:

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 to the filter will skip saving the current option.





Quellcode

$value = apply_filters( 'set-screen-option', false, $option, $value );