WPMU - restore deleted blog with an ID of 1 References By mistake I used this function: wpmu_delete_blog( 1, true ); which deleted my main blog. I managed to restore this in the database in wp_blogs by setting deleted to 0 for this blog but I\'m wondering if this can be done from within plugin or theme files? The following didn\'t work (in plugin\'s files): function restore_my_blog() { update_blog_status(1, \'deleted\', 0); } add_action( \'wp\', \'restore_my_blog\' ); Why is this not correct?
No comments:
Post a Comment