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