wpmu_drop_tables

wpmu_drop_tables

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('wpmu_drop_tables') is found 1 times:

  • /wp-includes/ms-site.php line 836
    	 *
    	 * @param string[] $tables  Array of names of the site tables to be dropped.
    	 * @param int      $site_id The ID of the site to drop tables for.
    	 */
    	$drop_tables = apply_filters( 'wpmu_drop_tables', $tables, $site->id );
    
    	foreach ( (array) $drop_tables as $table ) {
    		$wpdb->query( "DROP TABLE IF EXISTS `$table`" ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
    	}
    
    	/**
    

See this hook used in plugins: