Version Description
- 2017-08-04
- Set Woo attribute terms to public.
Download this release
Release Info
Developer | mpol |
Plugin | Custom Taxonomy Order NE |
Version | 2.9.1 |
Comparing to | |
See all releases |
Code changes from version 2.9.0 to 2.9.1
- customtaxorder.php +15 -2
- readme.txt +12 -3
customtaxorder.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Custom Taxonomy Order NE
|
4 |
Plugin URI: http://products.zenoweb.nl/free-wordpress-plugins/custom-taxonomy-order-ne/
|
5 |
Description: Allows for the ordering of categories and custom taxonomy terms through a simple drag-and-drop interface.
|
6 |
-
Version: 2.9.
|
7 |
Author: Marcel Pol
|
8 |
Author URI: http://zenoweb.nl/
|
9 |
License: GPLv2 or later
|
@@ -40,7 +40,7 @@ Domain Path: /lang/
|
|
40 |
|
41 |
|
42 |
// Plugin Version
|
43 |
-
define('CUSTOMTAXORDER_VER', '2.9.
|
44 |
|
45 |
|
46 |
function customtaxorder_register_settings() {
|
@@ -442,6 +442,19 @@ function customtaxorder_order_categories( $categories ) {
|
|
442 |
add_filter( 'get_the_categories', 'customtaxorder_order_categories' );
|
443 |
|
444 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
445 |
/*
|
446 |
* About page with text.
|
447 |
*/
|
3 |
Plugin Name: Custom Taxonomy Order NE
|
4 |
Plugin URI: http://products.zenoweb.nl/free-wordpress-plugins/custom-taxonomy-order-ne/
|
5 |
Description: Allows for the ordering of categories and custom taxonomy terms through a simple drag-and-drop interface.
|
6 |
+
Version: 2.9.1
|
7 |
Author: Marcel Pol
|
8 |
Author URI: http://zenoweb.nl/
|
9 |
License: GPLv2 or later
|
40 |
|
41 |
|
42 |
// Plugin Version
|
43 |
+
define('CUSTOMTAXORDER_VER', '2.9.1');
|
44 |
|
45 |
|
46 |
function customtaxorder_register_settings() {
|
442 |
add_filter( 'get_the_categories', 'customtaxorder_order_categories' );
|
443 |
|
444 |
|
445 |
+
/*
|
446 |
+
* Set WooCommerce attribute terms to public so they can be sorted.
|
447 |
+
* Works for WooCommerce 3.0+
|
448 |
+
*/
|
449 |
+
function customtaxorder_woocommerce_attribute_taxonomies_public( $attribute_taxonomies ) {
|
450 |
+
foreach ( $attribute_taxonomies as $attribute_taxonomy ) {
|
451 |
+
$attribute_taxonomy->attribute_public = 1;
|
452 |
+
}
|
453 |
+
return $attribute_taxonomies;
|
454 |
+
}
|
455 |
+
add_filter( 'woocommerce_attribute_taxonomies', 'customtaxorder_woocommerce_attribute_taxonomies_public' );
|
456 |
+
|
457 |
+
|
458 |
/*
|
459 |
* About page with text.
|
460 |
*/
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Plugin Name ===
|
2 |
Contributors: mpol
|
3 |
-
Tags:
|
4 |
Requires at least: 3.7
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 2.9.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
|
@@ -85,6 +85,11 @@ If it is a custom taxonomy, you can also use a filter:
|
|
85 |
There is a bug with the the_tags function, where it will sort according to the setting for categories.
|
86 |
This happens in the 'customtaxorder_apply_order_filter' function where the $args has two taxonomies but only one orderby can be returned.
|
87 |
|
|
|
|
|
|
|
|
|
|
|
88 |
= What capabilities are needed? =
|
89 |
|
90 |
For sorting the terms you need the manage_categories capability.
|
@@ -132,6 +137,10 @@ The left metabox lists the toplevel terms. Right (or below) are the sub-terms.
|
|
132 |
|
133 |
== Changelog ==
|
134 |
|
|
|
|
|
|
|
|
|
135 |
= 2.9.0 =
|
136 |
* 2017-07-10
|
137 |
* Drop support for attributes in WooCommerce (deprecated).
|
1 |
=== Plugin Name ===
|
2 |
Contributors: mpol
|
3 |
+
Tags: term order, category order, taxonomy order, order
|
4 |
Requires at least: 3.7
|
5 |
+
Tested up to: 4.9
|
6 |
+
Stable tag: 2.9.1
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
|
85 |
There is a bug with the the_tags function, where it will sort according to the setting for categories.
|
86 |
This happens in the 'customtaxorder_apply_order_filter' function where the $args has two taxonomies but only one orderby can be returned.
|
87 |
|
88 |
+
= I use WooCommerce Attributes. =
|
89 |
+
|
90 |
+
This plugin only supports sorting the attributes/terms. These are the items like S, M and L.
|
91 |
+
For sorting the taxonomies like 'size', you need to sort them on Woo's attributes page.
|
92 |
+
|
93 |
= What capabilities are needed? =
|
94 |
|
95 |
For sorting the terms you need the manage_categories capability.
|
137 |
|
138 |
== Changelog ==
|
139 |
|
140 |
+
= 2.9.1 =
|
141 |
+
* 2017-08-04
|
142 |
+
* Set Woo attribute terms to public.
|
143 |
+
|
144 |
= 2.9.0 =
|
145 |
* 2017-07-10
|
146 |
* Drop support for attributes in WooCommerce (deprecated).
|