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