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 |
---|---|
723 | * @since 5.4.2 |
724 | * |
725 | * @see set_screen_options() |
726 | * |
727 | * @param mixed $screen_option The value to save instead of the option value. |
728 | * Default false (to skip saving the current option). |
729 | * @param string $option The option name. |
730 | * @param int $value The option value. |
731 | */ |
732 | $value = apply_filters( "set_screen_option_{$option}", $screen_option, $option, $value ); |
733 |
|
734 | if ( false === $value ) { |
735 | return; |
736 | } |
737 | break; |
738 | } |
739 |
|
740 | update_user_meta( $user->ID, $option, $value ); |
741 |
|