Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: update_blog_public

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
1765  * @since MU
1766  * @uses update_blog_status()
1767  *
1768  * @param int $old_value
1769  * @param int $value The new public value
1770  * @return bool
1771  */
1772 function update_blog_public( $old_value, $value ) {
1773      global $wpdb;
1774      do_action('update_blog_public');
1775      update_blog_status( $wpdb->blogid, 'public', (int) $value );
1776 }
1777 add_action('update_option_blog_public', 'update_blog_public', 10, 2);
1778
1779 /**
1780  * Get the "dashboard blog", the blog where users without a blog edit their profile data.
1781  *
1782  * @since MU
1783  * @uses get_blog_details()