Set post types for search query

0.0/5
<?php
add_action('elementor/query/wpd_search', function( $query ) {
	$query->set('post_type', array('post','page','machines'));
});

Comments and reviews

{{ reviewsTotal }} Review
{{ reviewsTotal }} Reviews
{{ options.labels.newReviewButton }}
{{ userData.canReview.message }}

Description

Author

Tags

This snippet is untagged