LLMS_Blocks_Migrate::__construct()

Constructor.


Source Source

File: libraries/lifterlms-blocks/includes/class-llms-blocks-migrate.php

	public function __construct() {

		add_action( 'current_screen', array( $this, 'migrate_post' ) );
		add_action( 'wp', array( $this, 'remove_template_hooks' ) );
		add_action( 'llms_blocks_unmigrate_posts', array( $this, 'unmigrate_posts' ) );

		add_filter( 'llms_blocks_is_post_migrated', array( __CLASS__, 'check_sales_page' ), 15, 2 );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.7.0 Perform migrations on current_screen instead of admin_enqueue_scripts.
1.4.0 Add action for unmigrating posts from the Tools & Utilities status screen.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.