PHP warning when creating a new site multisite
-
When I have this plugin network activated on a multisite network and create a new site, I get the following PHP warning:
PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'new_blog' not found or invalid function name in .../wp-includes/plugin.php on line 406
The error comes from, line 15:
add_action('wpmu_new_blog', 'new_blog', 10, 6);
It should read instead:
add_action('wpmu_new_blog', array( $this, 'new_blog' ), 10, 6);
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP warning when creating a new site multisite’ is closed to new replies.