wpmdb_preserved_sitemeta_options_data

wpmdb_preserved_sitemeta_options_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wp-migrate-db.2.6.9

apply_filters('wpmdb_preserved_sitemeta_options_data') is found 1 times:

  • /class/Common/Sql/Table.php line 405
                        ),
                        ARRAY_A
                    );
    
                    $preserved_sitemeta_options_data = apply_filters('wpmdb_preserved_sitemeta_options_data', $preserved_sitemeta_options_data, $intent);
    
                    // Create preserved data queries for site meta table
                    foreach ($preserved_sitemeta_options_data as $option) {
                        $sql .= $wpdb->prepare("DELETE FROM `{$sitemeta_table_name}` WHERE `meta_key` = %s;\n", $option['meta_key']);
                        $sql .= $wpdb->prepare(
                            "INSERT INTO `{$sitemeta_table_name}` ( `meta_id`, `site_id`, `meta_key`, `meta_value` ) VALUES ( NULL , %s, %s, %s );\n",