Action_Scheduler\Migration

Controller::hook_admin_notices()publicWC 1.0

Hook dashboard migration notice.

Method of the class: Controller{}

No Hooks.

Return

null. Nothing.

Usage

$Controller = new Controller();
$Controller->hook_admin_notices();

Controller::hook_admin_notices() code WC 7.3.0

public function hook_admin_notices() {
	if ( ! $this->allow_migration() || \ActionScheduler_DataController::is_migration_complete() ) {
		return;
	}
	add_action( 'admin_notices', array( $this, 'display_migration_notice' ), 10, 0 );
}