LLMS_Blocks_Migrate::unmigrate_posts()

Unmigrates migrated posts.


Return Return

(void.)


Top ↑

Source Source

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

	public function unmigrate_posts() {

		$posts = $this->get_migrated_posts( array( 'posts_per_page' => 250 ) ); // phpcs:ignore WordPress.WP.PostsPerPage.posts_per_page_posts_per_page

		if ( $posts->posts ) {
			foreach ( $posts->posts as $post ) {
				$this->remove_template_from_post( $post );
			}
		}

	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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