Post Types Order 2.5.9 has 6 actions and 22 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Post Types Order fires an action
add_action( 'PTO/order_update_complete', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Post Types Order is about to use
add_filter( 'pto/posts_orderby', function( $orderBy, $query ) {
// Change $orderBy here.
return $orderBy;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
pto/posts_orderby
filter/** * Deprecated filter do not rely on this anymore */ apply_filters( 'pto/posts_orderby', $orderBy, $query ); -
apply_filters( 'post-types-order_save-ajax-order', $data, $key, $id ); -
pto/save-ajax-order
filterapply_filters( 'pto/save-ajax-order', $data, $key, $id ); -
wpml_element_type
filterapply_filters( 'wpml_element_type', $post_type ); -
PTO/order_update_complete
actiondo_action( 'PTO/order_update_complete' ); -
pto/posts_order
filterapply_filters( 'pto/posts_order', '', $query ); -
breeze_clear_all_cache
actiondo_action( 'breeze_clear_all_cache' ); -
cpt/compatibility/init
actiondo_action( 'cpt/compatibility/init' ); -
apply_filters( 'cpto/interface/show_available_posts', TRUE, $current_location['post_types'] ); -
edit_{$post_type}_per_page
filterapply_filters( "edit_{$post_type}_per_page", $objects_per_page ); -
do_action( 'flying_press_purge_everything:after' ); -
do_action( 'flying_press_purge_everything:before' ); -
do_action( 'pto/admin/plugin_options/capability' ); -
pto/edit_capability
filterapply_filters( 'pto/edit_capability', $capability, $post_type_name ); -
pto/get_options
filterapply_filters( 'pto/get_options', $options ); -
pto/interface_item_data
filterapply_filters( 'pto/interface_item_data', '', $object ); -
pto/interface/query/args
filterapply_filters( 'pto/interface/query/args', $args ); -
pto/interface/query/limit
filterapply_filters( 'pto/interface/query/limit', $this->items_limit ); -
pto/interface/table/tbody
filterapply_filters( 'pto/interface/table/tbody', '', $object ); -
pto/order_reset
filterapply_filters( 'pto/order_reset', $post_type ); -
pto/park_unordered_items_at
filterapply_filters( 'pto/park_unordered_items_at', 999999999, $post_type ); -
pto/posts_orderby/ignore
filterapply_filters( 'pto/posts_orderby/ignore', FALSE, $orderBy, $query ); -
the_title
filterapply_filters( 'the_title', $object->post_title, $object->ID ); -
wpml_current_language
filterapply_filters( 'wpml_current_language', null );
Generated from Post Types Order's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: