Changeset 2951257
- Timestamp:
- 08/10/2023 07:20:58 AM (12 months ago)
- Location:
- rearrange-woocommerce-products/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
rearrange-woocommerce-products/trunk/readme.txt
r2945852 r2951257 4 4 Tags: woocommerce, ecommerce, product, reorder, rearrange, sort, sortbycategory, Woo 5 5 Requires at least: 4.6 6 Tested up to: 6. 2.27 Stable tag: 4.1. 66 Tested up to: 6. 7 Stable tag: 4.1. 8 8 Requires PHP: 7.4.0 9 9 License: GPLv3 or later License … … 88 88 89 89 == ChangeLog == 90 91 92 93 94 90 95 91 96 = Version 4.1.6 = -
rearrange-woocommerce-products/trunk/rearrange-woocommerce-products.php
r2945852 r2951257 4 4 * Plugin URI: https://wordpress.org/plugins/rearrange-woocommerce-products/ 5 5 * Description: a WordPress plugin to Rearrange Woocommerce Products listed on the Shop page 6 * Version: 4.1. 66 * Version: 4.1. 7 7 * Author: Aslam Doctor 8 8 * Author URI: https://aslamdoctor.com/ … … 14 14 * 15 15 * WC requires at least: 4.3 16 * WC tested up to: 7.9.016 * WC tested up to: 17 17 * 18 18 * License: GNU General Public License v3.0 -
rearrange-woocommerce-products/trunk/views/template-parts/-tab-all-products.php
r2943375 r2951257 30 30 ); 31 31 32 if ( $this->meta_field_exists( $meta_key ) ) { 33 $args['meta_key'] = $meta_key; // phpcs:ignore 34 $args['orderby'] = 'meta_value_num menu_order title'; 35 $args['order'] = 'ASC'; 36 } 32 $args['meta_query'] = array( 33 'relation' => 'OR', 34 array( 35 'key' => $meta_key, 36 'compare' => 'EXISTS', 37 ), 38 array( 39 'key' => $meta_key, 40 'compare' => 'NOT EXISTS', 41 ), 42 ); 43 44 $args['orderby'] = 'meta_value_num menu_order title'; 45 $args['order'] = 'ASC'; 37 46 } else { 38 47 $args['orderby'] = 'menu_order title';
Note: See TracChangeset
for help on using the changeset viewer.