label; foreach ( $post_types as $post_type => $label ) { $condition = new Post( [ 'post_type' => $post_type, ] ); $this->register_sub_condition( $condition ); } $this->sub_conditions[] = 'child_of'; $this->sub_conditions[] = 'any_child_of'; $this->sub_conditions[] = 'by_author'; // Last condition. $this->sub_conditions[] = 'not_found404'; } public function check( $args ) { return false; } } add_action( 'elementor/theme/register_conditions', function( $conditions_manager ) { $conditions_manager->get_condition('general')->register_sub_condition( new ECS_Loop_Conditions() ); },100);