Changeset 1750656
- Timestamp:
- 10/22/2017 01:28:58 PM (8 years ago)
- Location:
- woocommerce-auto-category-thumbnails/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
woocommerce-auto-cat-thumbnails.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-auto-category-thumbnails/trunk/readme.txt
r1222531 r1750656 3 3 Tags: woocommerce, ecommerce, e-commerce, wordpress ecommerce, shopping, categories 4 4 Requires at least: 4.0 5 Tested up to: 4. 35 Tested up to: 4.8.2 6 6 Donate link: http://patreon.com/shellbot 7 7 Stable tag: trunk … … 12 12 13 13 == Description == 14 15 ** 22/10/17 - Updated for the latest version of WooCommerce ** 14 16 15 17 By default, WooCommerce displays a neutral and uninteresting category image placeholder in those cases where a category has … … 46 48 == Changelog == 47 49 50 = 1.2 = 51 * Fixed incompatibility with latest version of WooCommerce due to changed handling of product visibility setting 52 48 53 = 1.1 = 49 54 * Moved settings page to WooCommerce settings tab -
woocommerce-auto-category-thumbnails/trunk/woocommerce-auto-cat-thumbnails.php
r1202125 r1750656 4 4 Plugin URI: http://codebyshellbot.com/wordpress-plugins/woocommerce-auto-category-thumbnails/ 5 5 Description: Automatically display a relevant product image if category thumbnails are not set. 6 Version: 1. 16 Version: 1.2 7 7 Author: Shellbot 8 8 Author URI: http://codebyshellbot.com … … 68 68 //Otherwise build our query 69 69 $query_args = array( 70 'meta_query' => array(71 array(72 'key' => '_visibility',73 'value' => array( 'catalog', 'visible' ),74 'compare' => 'IN'75 )76 ),77 70 'post_status' => 'publish', 78 71 'post_type' => 'product', 79 72 'posts_per_page' => 1, 80 73 'tax_query' => array( 74 'relation' => 'AND', 81 75 array( 82 76 'field' => 'id', 83 77 'taxonomy' => 'product_cat', 84 78 'terms' => $cat->term_id 85 ) 79 ), 80 array( 81 'field' => 'slug', 82 'taxonomy' => 'product_visibility', 83 'terms' => 'exclude-from-catalog', 84 'operator' => 'NOT IN', 85 ), 86 86 ) 87 87 );
Note: See TracChangeset
for help on using the changeset viewer.