wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



set-screen-option › WordPress Filter Hooks

Da5.4.2
Deprecaton/a
apply_filters( 'set-screen-option', $screen_option, $option, $value )
Parametri: (3)
  • (mixed) $screen_option The value to save instead of the option value. Default false (to skip saving the current option).
    Richiesto:
  • (string) $option The option name.
    Richiesto:
  • (int) $value The option value.
    Richiesto:
Definito a:
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 from the filter will skip saving the current option.





Sorgenti

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