Astra_Posts_Structure_Loader::get_supported_post_types()
Get all supported pots types & filter the public ones for further query.
Description
Return
(array) $post_types
Source
File: inc/modules/posts-structures/class-astra-posts-structure-loader.php
public static function get_supported_post_types() { $queried_post_types = array_keys( get_post_types( array( 'public' => true, '_builtin' => false, 'exclude_from_search' => false, ) ) ); $queried_post_types = array_diff( $queried_post_types, array( 'astra-advanced-hook', 'astra_adv_header', 'elementor_library', 'brizy_template', 'course', 'lesson', 'llms_membership', 'tutor_quiz', 'tutor_assignments', 'testimonial', 'frm_display', 'mec_esb', 'mec-events', 'sfwd-assignment', 'sfwd-essays', 'sfwd-transactions', 'sfwd-certificates', 'sfwd-quiz', 'e-landing-page', ) ); $queried_post_types[] = 'post'; $queried_post_types[] = 'page'; $supported_post_types = array_reverse( array_unique( $queried_post_types ) ); return apply_filters( 'astra_dynamic_post_structure_posttypes', $supported_post_types ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |