Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: update_site_option_{$key}

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
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
3221  * @package WordPress
3222  * @subpackage Transient