wpmdb_cli_filter_source_tables

wpmdb_cli_filter_source_tables

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

See hook in core

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

apply_filters('wpmdb_cli_filter_source_tables') is found 1 times:

  • /class/Common/Cli/Cli.php line 224
    		}
    
    		// Check for tables specified in migration profile that do not exist in the source database
    		if (!empty($this->profile['select_tables']) && 'import' !== $this->profile['action']) {
    			$source_tables = apply_filters('wpmdb_cli_filter_source_tables', $this->table->get_tables(), $this->profile);
    
    			if (!empty($source_tables)) {
    				// Return error if selected tables do not exist in source database
    				$nonexistent_tables = array();
    				foreach ($this->profile['select_tables'] as $table) {
    					if (!in_array($table, $source_tables)) {