wpmdb_target_table_name

wpmdb_target_table_name

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

See hook in core

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

apply_filters('wpmdb_target_table_name') is found 1 times:

  • /class/Common/Sql/Table.php line 578
     
            $temp_prefix       = (isset($state_data['temp_prefix']) ? $state_data['temp_prefix'] : $this->props->temp_prefix);
            $site_details      = empty($state_data['site_details']) ? array() : $state_data['site_details'];
            $subsite_migration = array_key_exists('mst_select_subsite', $state_data) && '1' === $state_data['mst_select_subsite'];
            $target_table_name = apply_filters('wpmdb_target_table_name', $table, $state_data, $site_details, $subsite_migration );
            if (in_array($state_data['intent'], ['push', 'pull']) && !$subsite_migration) {
                $target_table_name = $this->prefix_target_table_name($target_table_name, $state_data);
            }
            $temp_table_name   = $state_data["intent"] === 'import' ? $target_table_name : $temp_prefix . $target_table_name;
            $structure_info    = $this->get_structure_info($table, [], $state_data);
            $row_start         = $this->get_current_row($state_data);