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 |
---|---|
773 | * @since 5.4.2 |
774 | * |
775 | * @see set_screen_options() |
776 | * |
777 | * @param mixed $screen_option The value to save instead of the option value. |
778 | * Default false (to skip saving the current option). |
779 | * @param string $option The option name. |
780 | * @param int $value The option value. |
781 | */ |
782 | $value = apply_filters( "set_screen_option_{$option}", $screen_option, $option, $value ); |
783 |
|
784 | if ( false === $value ) { |
785 | return; |
786 | } |
787 |
|
788 | break; |
789 | } |
790 |
|
791 | update_user_meta( $user->ID, $option, $value ); |