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.


Top ↑

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' );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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