wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-builder.php
/**
	 * Get all posts from all post type that has builder data as post meta
	 * @param $paged array of modules names
	 * @return array posts id
	 * @since 4.1.2
	 */
Get all posts from all post type that has builder data as post meta
@param $paged array of modules names
@return array posts id
@since 4.1.2
Get all posts from all post type that has builder data as post meta @param $paged array of modules names @return array posts id @since 4 . 1 . 2
function themify_get_builder_posts($paged = 1) {
	    $result = array();
	    $meta_key = ThemifyBuilder_Data_Manager::$meta_key;
	    $args = array(
		'post_type' => array_keys(get_post_types()),
		'posts_per_page' => '7',
		'update_post_term_cache' => false,
		'ignore_sticky_posts'=>true,
		'update_post_meta_cache' => false,
		'cache_results' => false,
		'paged' => $paged,
		'meta_query' => array(
		    array(
			'key' => $meta_key,
			'value' => '',
			'compare' => '!=',
		    ),
		),
	    );
	    $query = new WP_Query($args);
	    $result['groups'] = $query->max_num_pages;
	    if ($query->have_posts()) {
		while ($query->have_posts()) {
		    $query->the_post();
		    $result['posts'][] = get_the_ID();
		}
		wp_reset_postdata();
	    }
	    if (isset($_POST['from_ajax'])) {
		echo json_encode($result);
		wp_die();
	    } else {
		return $result['posts'];
	    }
	}
function themify_get_builder_posts ( $ paged = 1 ) { $ result = array ( ) ; $ meta_key = ThemifyBuilder_Data_Manager :: $ meta_key ; $ args = array ( 'post_type' => array_keys ( get_post_types ( ) ) , 'posts_per_page' => '7' , 'update_post_term_cache' => false , 'ignore_sticky_posts' => true , 'update_post_meta_cache' => false , 'cache_results' => false , 'paged' => $ paged , 'meta_query' => array ( array ( 'key' => $ meta_key , 'value' => '' , 'compare' => '!=' , ) , ) , ) ; $ query = new WP_Query ( $ args ) ; $ result [ 'groups' ] = $ query -> max_num_pages ; if ( $ query -> have_posts ( ) ) { while ( $ query -> have_posts ( ) ) { $ query -> the_post ( ) ; $ result [ 'posts' ] [ ] = get_the_ID ( ) ; } wp_reset_postdata ( ) ; } if ( isset ( $ _POST [ 'from_ajax' ] ) ) { echo json_encode ( $ result ) ; wp_die ( ) ; } else { return $ result [ 'posts' ] ; } }
Get all posts from all post type that has builder data as post meta
 @param $paged array of modules names
 @return array posts id
 @since 4.1.2
Get all posts from all post type that has builder data as post meta @param $paged array of modules names @return array posts id @since 4 . 1 . 2
/* Restore original Post Data */