wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
Top Google Suchergebnisse
- php - -WP Multisite- How to also drop plugin database tables when ...
wp-admin/includes/ms.php Line 86: $drop_tables = apply_filters( ' wpmu_drop_tables', $wpdb->tables( 'blog' ) );. So in your custom plugin, ... - wpmu_delete_blog (WordPress Function) - WPSeek.com
$drop_tables = apply_filters( 'wpmu_drop_tables', $wpdb->tables( 'blog' ) ); foreach ( (array) $drop_tables as $table ) { $wpdb->query( "DROP TABLE IF ... - Is it possible to run plugin code when a multisite blog is deleted ...
Feb 8, 2012 ... add_filter("wpmu_drop_tables", "DropTablesForBlog"); function DropTablesForBlog($tables) { global $wpdb; $tables[] = $wpdb->prefix . - #19009 (wpmu_delete_blog() can wipe out an entire network ...
keeps the wpmu_drop_tables filter. As commented above, it kicks $force to false if $blog_id == 1. Also, cruft like autosave_draft_ids and the blog_list site_option ...