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.7.2

apply_filters('wpmu_drop_tables') is found 1 times:

  • /wp-includes/ms-site.php line 832
    828
    829
    830
    831
    832
    833
    834
    835
    836
    837
    838
    *
     * @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: