\Action_Scheduler\WP_CLIMigration_Command

Class Migration_Command

Summary

Methods
Properties
Constants
register()
migrate()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
get_migration_config()
init_logging()
$total_processed
N/A

Properties

$total_processed

$total_processed : int

Number of actions migrated.

Type

normal

Methods

register()

register() : mixed

Register the command with WP-CLI

Returns

mixed

migrate()

migrate(array  $positional_args, array  $assoc_args) : void

Process the data migration.

Parameters

array $positional_args

Required for WP CLI. Not used in migration.

array $assoc_args

Optional arguments.

get_migration_config()

get_migration_config(array  $args) : \Action_Scheduler\WP_CLI\ActionScheduler\Migration\Config

Build the config object used to create the Runner

Parameters

array $args

Optional arguments.

Returns

\Action_Scheduler\WP_CLI\ActionScheduler\Migration\Config

init_logging()

init_logging() : mixed

Hook command line logging into migration actions.

Returns

mixed