Documentation - Actions / Filters - Action – Sort Interface – on Order Update for paginated list

Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInPrint this page

Action – Sort Interface – on Order Update for paginated list

This action can be used to trigger certain code on a sort interface update, for paginated list.

apto_object_order_update

Parameters
The action send through a single array of arguments. Depending on the sort type and included post types (e.g. archive, hierarchical, simple sort), the list can contain the following:

  • ‘post_id’ – the object ID
  • ‘position’ – current object sort index
  • ‘sort_view_id’ – sort view ID being updated
  • ‘page_parent’ – current object parent, only if hierarchical sort type

Examples

add_action('apto_object_order_update', 'custom_apto_object_order_update');
function custom_apto_object_order_update($params)
	{
                extract($params);
		//your code here  
        }