LLMS_Blocks_Migrate::get_migrated_posts( array $args = array() )

Retrieve a WP_Query for posts which have already been migrated.


Parameters Parameters

$args

(array) (Optional) query arguments to pass to WP_Query.

Default value: array()


Top ↑

Return Return

(WP_Query)


Top ↑

Source Source

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

	public function get_migrated_posts( $args = array() ) {

		return new WP_Query(
			wp_parse_args(
				$args,
				array(
					'post_type'  => $this->get_migrateable_post_types(),
					'meta_query' => array(
						array(
							'key'   => '_llms_blocks_migrated',
							'value' => 'yes',
						),
					),
				)
			)
		);

	}


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.