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()
Return Return
(WP_Query)
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',
),
),
)
)
);
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 1.4.0 | Introduced. |