/home/vianto5/heredit.mx/wp-content/plugins/elementor-pro/modules/theme-builder/conditions
NameSizeModeActions
any-child-of-term.php10230644editdlrm
any-child-of.php5680644editdlrm
archive.php13980644editdlrm
author.php9370644editdlrm
by-author.php9790644editdlrm
child-of-term.php9390644editdlrm
child-of.php12920644editdlrm
condition-base.php15680644editdlrm
date.php4910644editdlrm
front-page.php5080644editdlrm
general.php5860644editdlrm
in-sub-term.php8780644editdlrm
in-taxonomy.php13710644editdlrm
not-found404.php5970644editdlrm
post-type-archive.php18330644editdlrm
post-type-by-author.php12500644editdlrm
post.php21160644editdlrm
search.php4990644editdlrm
singular.php13140644editdlrm
taxonomy.php13150644editdlrm
Edit: /home/vianto5/heredit.mx/wp-content/plugins/elementor-pro/modules/theme-builder/conditions/post.php (2116B)
post_type = get_post_type_object( $data['post_type'] ); $taxonomies = get_object_taxonomies( $data['post_type'], 'objects' ); $this->post_taxonomies = wp_filter_object_list( $taxonomies, [ 'public' => true, 'show_in_nav_menus' => true, ] ); parent::__construct(); } public function get_name() { return $this->post_type->name; } public function get_label() { return $this->post_type->labels->singular_name; } public function get_all_label() { return $this->post_type->label; } public function check( $args ) { if ( isset( $args['id'] ) ) { $id = (int) $args['id']; if ( $id ) { return is_singular() && get_queried_object_id() === $id; } } return is_singular( $this->post_type->name ); } public function register_sub_conditions() { foreach ( $this->post_taxonomies as $slug => $object ) { $in_taxonomy = new In_Taxonomy( [ 'object' => $object, ] ); $this->register_sub_condition( $in_taxonomy ); if ( $object->hierarchical ) { $in_sub_term = new In_Sub_Term( [ 'object' => $object, ] ); $this->register_sub_condition( $in_sub_term ); } } $by_author = new Post_Type_By_Author( $this->post_type ); $this->register_sub_condition( $by_author ); } protected function register_controls() { $this->add_control( 'post_id', [ 'section' => 'settings', 'type' => QueryModule::QUERY_CONTROL_ID, 'select2options' => [ 'dropdownCssClass' => 'elementor-conditions-select2-dropdown', ], 'autocomplete' => [ 'object' => QueryModule::QUERY_OBJECT_POST, 'query' => [ 'post_type' => $this->get_name(), ], ], ] ); } }