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 |
|---|---|
| 1906 | * @since MU |
| 1907 | * @uses update_blog_status() |
| 1908 | * |
| 1909 | * @param int $old_value |
| 1910 | * @param int $value The new public value |
| 1911 | * @return bool |
| 1912 | */ |
| 1913 | function update_blog_public( $old_value, $value ) { |
| 1914 | global $wpdb; |
| 1915 | do_action('update_blog_public'); |
| 1916 | update_blog_status( $wpdb->blogid, 'public', (int) $value ); |
| 1917 | } |
| 1918 | add_action('update_option_blog_public', 'update_blog_public', 10, 2); |
| 1919 | |
| 1920 | /** |
| 1921 | * Get the "dashboard blog", the blog where users without a blog edit their profile data. |
| 1922 | * |
| 1923 | * @since MU |
| 1924 | * @uses get_blog_details() |