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 |
---|---|
1816 | * @since MU |
1817 | * @uses update_blog_status() |
1818 | * |
1819 | * @param int $old_value |
1820 | * @param int $value The new public value |
1821 | * @return bool |
1822 | */ |
1823 | function update_blog_public( $old_value, $value ) { |
1824 | global $wpdb; |
1825 | do_action('update_blog_public'); |
1826 | update_blog_status( $wpdb->blogid, 'public', (int) $value ); |
1827 | } |
1828 | add_action('update_option_blog_public', 'update_blog_public', 10, 2); |
1829 |
|
1830 | /** |
1831 | * Get the "dashboard blog", the blog where users without a blog edit their profile data. |
1832 | * |
1833 | * @since MU |
1834 | * @uses get_blog_details() |