News

Pagination on AJAX Sort List Update

For very large list, it can be a challenge to save an order list. Something this can take a while, on certain hosts it can be stopped from execution returning an 500 server error. The main cause for this is a php environment variable called Maximum Execution Time. This is generally set for 30 seconds.
When Pagination is set for Advanced Post Types Order plugin, the timeouts are no longer a problem, the sort list save job is split into small chunks to allow server to process the data.

Pagination on AJAX Sort List Update - progress

Additionally, a progress data is being show, the current chunk page out of total jobs.

Applying multiple order criteria for Automatic Order through Fallback functionality

The Advanced Post Types Order plugin include an easy way to automatically sort objects of a list (e.g. post type archive, category list, mix of post types and taxonomies terms etc) through a powerful functionality called Automatic Order. This will auto update sort for objects on front site.

advanced-post-types-order-automatic-sort-interface-example

(more…)

Applying a different capability for Administrator when using Advanced Post Types Order

By default the Advanced Post Types Order plugin use the ‘switch_themes’ capability for Administrator role. There are situations when this capability is not available or is been removed or relocated for another role, meaning administrators are not able to see or change a sort.

The following code show how to change the ‘switch_themes’ to ‘activate_plugins’ capability.


//capability to see the re-order menu interface
add_filter('apto_reorder_capability', 'custom_apto_reorder_capability');

//capability to allow a new sort to be created
add_filter('apto/wp-admin/reorder-interface/view-settings-capability', 'custom_apto_reorder_capability');

//individual tabs view. This overwrite the default capability set through sort setting
add_filter('apto/wp-admin/reorder-interface/sort-view-required-capability', 'custom_apto_reorder_capability');
    
function custom_apto_reorder_capability($capability)
    {
        $capability =   'activate_plugins';
           
        return $capability;
    }

Creating custom format for licence keys on WooCommerce Software License plugin

To create a custom licence key, the woo_sl/generate_license_key filter can be used. This send along 4 arguments:

  • $license_key
  • $order_id
  • $order_item_id
  • $license_group_id

(more…)

Use Pre-Generated Licence Keys with WooCommerce Software License

Starting version 1.2 (6-October-2015) the WooCommerce Software License plugin got a new enhancement, the ability to use existing keys (own admin keys) along the plugin code. If you are a re-seller this become the great tool for selling keys and software. All existing functionality like allowed client keys, instances per key etc, can still apply. Also multiple Licensing groups can be created allowing mix of pre-generated with automated keys to be bundled toughener.

(more…)

Customizing custom post objects order using multiple items selection with drag & drop functionality

Moving around hundred or thousand of post items within a sort interface is no longer a time consuming operation. Starting version 3.7.4 the Advanced Post Types Order plugin got a new core functionality, a multiple item selection for a drag and drop process. (more…)

WooCommerce Software License Documentation

The WooCommerce Software License plugin provide an easy and secure way to manage product licensing, software update, maintenance and protection. The WooCommerce Software License include an API module which facilitate software activation, de-activation, evaluation check, update. Prebuilt integration code examples are provided through the package, so any software can include licensing functionality, key activation with a minimum effort. Help support is available by our software engineers.

Taxonomy Terms Order and Auto Sort, Admin Sort description an usage

The Taxonomy Terms Order plugin is an easy way to control the sort for any taxonomies.  The order is applied to the front side using the arguments:

‘orderby’ => ‘term_order’,

Example:


$argv = array(	 	 
		'orderby' => 'term_order' 	 
		);	 	 
get_terms('category', $argv);

 

 

Autosort OFF
No query sort will be changed, the terms will appear in the original order, per orderby argument. To retrieve the terms in the customised order you must use the term_order on the orderby parameter:


$argv = array(	 	 
		'orderby' => 'term_order',	 	 
		'hide_empty' => false	 	 
		);	 	 
get_terms('category', $argv);

See more info on the get_terms usage here

Autosort ON
The queries will be updated, all terms will appear in the order you manually defined. This is recommended if you don’t want to change any theme code to apply the terms order

 

Admin Sort
The code queries will be updated within the admin interface, the sort will also apply on this area too.

How to use the AutoSort setting for Advanced Taxonomy Terms Order

The Advanced Taxonomy Terms Order include a great functionality, the AutoSort. This helps to auto-apply the customized sorting to front side, or allow a manual apply through code.
There are 2 modes for this option, On and OFF.

ON
The query will be updated (unless you manually change that from a specific Taxonomy Order menu), any orderby parameter will be changed to term_order. Practically all queries will be forced to use the new order. This is recommended if you don’t want to change any theme code to apply the terms order.

OFF
The query will not be touched (unless you manually change that from a specific Taxonomy Order menu), all terms will be retrieved in the same order as before. To retrieve the terms per customized sorting, you must use the term_order on the orderby parameter::

$argv = array(
                'orderby'       =>  'term_order',
                'hide_empty'    => false
                );
get_terms('category', $argv);

More info on the get_terms usage can be found at http://codex.wordpress.org/Function_Reference/get_terms

Randomize a sort every two hours, or a custom defined interval

Creating randomize sort never been easier, custom intervals can be set to whatever time-frame ins need. The sort will random the posts or any custom post types order. (more…)