Outil de recherche WordPress pour les développeurs et auteurs de thèmes



set-screen-option ›

Depuis2.8.0
Dépréciéen/a
apply_filters( 'set-screen-option', false, $option, $value )
Paramètres: (3)
  • (bool) $keep Whether to save or skip saving the screen option value. Default false.
    Requis: Oui
  • (string) $option The option name.
    Requis: Oui
  • (int) $value The number of rows to use.
    Requis: Oui
Voir:
  • set_screen_options()
Défini(e) dans:
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.





Source

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