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 |
---|---|
704 | * or the 'layout_columns' option. |
705 | * |
706 | * @see set_screen_options() |
707 | * |
708 | * @param mixed $screen_option The value to save instead of the option value. |
709 | * Default false (to skip saving the current option). |
710 | * @param string $option The option name. |
711 | * @param int $value The option value. |
712 | */ |
713 | $screen_option = apply_filters( 'set-screen-option', $screen_option, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores |
714 | } |
715 |
|
716 | /** |
717 | * Filters a screen option value before it is set. |
718 | * |
719 | * The dynamic portion of the hook, `$option`, refers to the option name. |
720 | * |
721 | * Returning false from the filter will skip saving the current option. |
722 | * |