LLMS_Admin_Tool_Install_Forms::get_reusable_blocks()
Retrieves a list of core reusable blocks ordered by their field ID.
Return Return
(int[]) List of the WP_Post IDs.
Source Source
File: includes/admin/tools/class-llms-admin-tool-install-forms.php
public function get_reusable_blocks() {
$query = new WP_Query(
array(
'posts_per_page' => -1,
'no_found_rows' => true,
'post_type' => 'wp_block',
'meta_key' => '_llms_field_id',
'meta_compare' => 'EXISTS',
'orderby' => 'meta_value',
)
);
return wp_list_pluck( $query->posts, 'ID' );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |