wpmdb_cli_before_initiate_migration

wpmdb_cli_before_initiate_migration

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

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

do_action('wpmdb_cli_before_initiate_migration') is found 1 times:

  • /class/Common/Cli/Cli.php line 363
    	 * @return array|WP_Error
    	 */
    	function cli_initiate_migration()
    	{
    		do_action('wpmdb_cli_before_initiate_migration', $this->profile);
    
    		\WP_CLI::log(__('Initiating migration...', 'wp-migrate-db-cli'));
    
    		$migration_args                          = $this->post_data;
    		$migration_args['form_data']             = json_encode($this->profile);
    		$migration_args['stage']                 = 'migrate';