LLMS_Blocks_Migrate::unmigrate_posts()
Unmigrates migrated posts.
Return Return
(void.)
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 ); } } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.4.0 | Introduced. |