-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
27 lines (18 loc) · 939 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/*
Plugin Name: Elementor Query Utils
Description: Various utils for Elementor Pro post queries: adds meta query fields and order by meta
Author: Ionuț Staicu
Version: 1.0.1
Author URI: http://ionutstaicu.com
*/
use iamntz\elementor_query_utils\WooCommerceArchive;
require_once 'inc/meta_filters_controls.php';
require_once 'inc/order_controls.php';
require_once 'inc/query.php';
require_once 'inc/WooCommerceArchive.php';
add_action('elementor/element/posts/section_query/before_section_end', 'iamntz\elementor_query_utils\order_controls', 99);
add_action('elementor/element/posts/section_query/before_section_end', 'iamntz\elementor_query_utils\meta_filters_controls');
add_action('elementor/element/woocommerce-products/section_query/before_section_end', 'iamntz\elementor_query_utils\meta_filters_controls');
add_filter('elementor/query/query_args', 'iamntz\elementor_query_utils\query', 99, 2);
new WooCommerceArchive;