wpmu_update_blog_options
Action HookDescription
Fires after the site options are updated.Hook Information
File Location |
wp-admin/network/site-settings.php
View on GitHub
|
Hook Type | Action |
Line Number | 60 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$id
|
The ID of the site being updated. |
Usage Examples
Basic Usage
<?php
// Hook into wpmu_update_blog_options
add_action('wpmu_update_blog_options', 'my_custom_function', 10, 1);
function my_custom_function($id) {
// Your custom code here
}
Source Code Context
wp-admin/network/site-settings.php:60
- How this hook is used in WordPress core
<?php
55 * @since 3.0.0
56 * @since 4.4.0 Added `$id` parameter.
57 *
58 * @param int $id The ID of the site being updated.
59 */
60 do_action( 'wpmu_update_blog_options', $id );
61
62 restore_current_blog();
63 wp_redirect(
64 add_query_arg(
65 array(
PHP Documentation
<?php
/**
* Fires after the site options are updated.
*
* @since 3.0.0
* @since 4.4.0 Added `$id` parameter.
*
* @param int $id The ID of the site being updated.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/network/site-settings.php
Related Hooks
Related hooks will be displayed here in future updates.