Elementor’s posts query (Slurry Tanks category)

add_action( ‘elementor/query/slurrytanks_category_query’, function( $query ) { $term_ids = get_terms([ ‘taxonomy’ => ‘category’, ‘slug’ => [‘slurrytanks’, ‘slurrytanks-tools’, ‘slurrytanks-patreonmods’, ‘slurrytanks-servermods’, ‘slurrytanks-exclusivemods’], ‘fields’ => ‘ids’, ‘hide_empty’ => true, ]); if ( !empty($term_ids) && !is_wp_error( $term_ids ) ) { $query->set( ‘category__in’, $term_ids ); }…Continue reading

Elementor’s posts query (Cultivators category)

add_action( ‘elementor/query/cultivators_category_query’, function( $query ) { $term_ids = get_terms([ ‘taxonomy’ => ‘category’, ‘slug’ => [‘cultivators’, ‘cultivators-patreonmods’, ‘cultivators-servermods’, ‘cultivators-exclusivemods’], ‘fields’ => ‘ids’, ‘hide_empty’ => true, ]); if ( !empty($term_ids) && !is_wp_error( $term_ids ) ) { $query->set( ‘category__in’, $term_ids ); } });Continue reading

Elementor’s posts query (Trailers category)

add_action( ‘elementor/query/trailers_category_query’, function( $query ) { $term_ids = get_terms([ ‘taxonomy’ => ‘category’, ‘slug’ => [‘trailers’, ‘trailers-patreonmods’, ‘trailers-servermods’, ‘trailers-exclusivemods’], ‘fields’ => ‘ids’, ‘hide_empty’ => true, ]); if ( !empty($term_ids) && !is_wp_error( $term_ids ) ) { $query->set( ‘category__in’, $term_ids ); } });Continue reading

Elementor’s posts query (Cars category)

add_action( ‘elementor/query/cars_category_query’, function( $query ) { $term_ids = get_terms([ ‘taxonomy’ => ‘category’, ‘slug’ => [‘cars’, ‘cars-patreonmods’, ‘cars-servermods’, ‘cars-exclusivemods’], ‘fields’ => ‘ids’, ‘hide_empty’ => true, ]); if ( !empty($term_ids) && !is_wp_error( $term_ids ) ) { $query->set( ‘category__in’, $term_ids ); } });Continue reading

Elementor’s posts query (Trucks category)

add_action( ‘elementor/query/trucks_category_query’, function( $query ) { $term_ids = get_terms([ ‘taxonomy’ => ‘category’, ‘slug’ => [‘trucks’, ‘trucks-patreonmods’, ‘trucks-servermods’, ‘trucks-exclusivemods’], ‘fields’ => ‘ids’, ‘hide_empty’ => true, ]); if ( !empty($term_ids) && !is_wp_error( $term_ids ) ) { $query->set( ‘category__in’, $term_ids ); } });Continue reading

Elementor’s posts query (Tractors category)

add_action( ‘elementor/query/tractors_mods_query’, function( $query ) { $term_ids = get_terms([ ‘taxonomy’ => ‘category’, ‘slug’ => [‘tractors’, ‘tractors-patreonmods’, ‘tractors-servermods’, ‘tractors-exclusivemods’], ‘fields’ => ‘ids’, ‘hide_empty’ => true, ]); if ( !empty($term_ids) && !is_wp_error( $term_ids ) ) { $query->set( ‘category__in’, $term_ids ); } });Continue reading

Completely Disable Comments (copy)

add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading