WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
754 | * or the 'layout_columns' option. |
755 | * |
756 | * @see set_screen_options() |
757 | * |
758 | * @param mixed $screen_option The value to save instead of the option value. |
759 | * Default false (to skip saving the current option). |
760 | * @param string $option The option name. |
761 | * @param int $value The option value. |
762 | */ |
763 | $screen_option = apply_filters( 'set-screen-option', $screen_option, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores |
764 | } |
765 |
|
766 | /** |
767 | * Filters a screen option value before it is set. |
768 | * |
769 | * The dynamic portion of the hook name, `$option`, refers to the option name. |
770 | * |
771 | * Returning false from the filter will skip saving the current option. |
772 | * |