Initial Commit
This commit is contained in:
28
dependencies/woocommerce/action-scheduler/classes/migration/DryRun_ActionMigrator.php
vendored
Normal file
28
dependencies/woocommerce/action-scheduler/classes/migration/DryRun_ActionMigrator.php
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Action_Scheduler\Migration;
|
||||
|
||||
/**
|
||||
* Class DryRun_ActionMigrator
|
||||
*
|
||||
* @package Action_Scheduler\Migration
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class DryRun_ActionMigrator extends ActionMigrator {
|
||||
/**
|
||||
* Simulate migrating an action.
|
||||
*
|
||||
* @param int $source_action_id Action ID.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function migrate( $source_action_id ) {
|
||||
do_action( 'action_scheduler/migrate_action_dry_run', $source_action_id );
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user