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 |
---|---|
3202 | function delete_site_option( $key ) { |
3203 | $result = delete_option($key); |
3204 | do_action( "delete_site_option_{$key}", $key ); |
3205 | return $result; |
3206 | } |
3207 |
|
3208 | // expects $key, $value not to be SQL escaped |
3209 | function update_site_option( $key, $value ) { |
3210 | $oldvalue = get_site_option( $key ); |
3211 | $value = apply_filters( 'pre_update_site_option_' . $key, $value, $oldvalue ); |
3212 | $result = update_option($key, $value); |
3213 | do_action( "update_site_option_{$key}", $key, $value ); |
3214 | return $result; |
3215 | } |
3216 |
|
3217 | /** |
3218 | * Delete a site transient |
3219 | * |
3220 | * @since 2.890 |