Action_Scheduler\Migration

Controller::hook_admin_notices()publicWC 1.0

Hook dashboard migration notice.

Method of the class: Controller{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Controller::hook_admin_notices() code WC 8.7.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 );
}