Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: set-screen-option

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
764                      *              or the 'layout_columns' option.
765                      *
766                      * @see set_screen_options()
767                      *
768                      * @param mixed  $screen_option The value to save instead of the option value.
769                      *                              Default false (to skip saving the current option).
770                      * @param string $option        The option name.
771                      * @param int    $value         The option value.
772                      */
773                     $screen_option = apply_filters( 'set-screen-option', $screen_option, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
774                }
775
776                /**
777                 * Filters a screen option value before it is set.
778                 *
779                 * The dynamic portion of the hook name, `$option`, refers to the option name.
780                 *
781                 * Returning false from the filter will skip saving the current option.
782                 *