Post Types Order icon
Content & Editing

Post Types Order hooks reference

  • By nsp-code
  • v2.5.9
  • Updated

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.

functions.phpyour child theme
// 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

  • include/class.cpto.php line 199
    /**
     * Deprecated filter do not rely on this anymore
     */
    apply_filters( 'pto/posts_orderby', $orderBy, $query );
  • include/class.functions.php line 186 · used in 4 places
    apply_filters( 'pto/navigation_sort_revert', $navigation_sort_revert );
  • include/class.cpto.php line 493 · used in 3 places
    apply_filters( 'post-types-order_save-ajax-order', $data, $key, $id );
  • include/class.cpto.php line 495 · used in 3 places
    apply_filters( 'pto/save-ajax-order', $data, $key, $id );
  • include/class.cpto.php line 596 · used in 3 places
    apply_filters( 'wpml_element_type', $post_type );
  • include/class.cpto.php line 532 · used in 2 places
    do_action( 'PTO/order_update_complete' );
  • include/class.cpto.php line 224 · used in 2 places
    apply_filters( 'pto/posts_order', '', $query );
  • include/class.functions.php line 648
    do_action( 'breeze_clear_all_cache' );
  • include/class.compatibility.php line 73
    do_action( 'cpt/compatibility/init' );
  • include/class.interface.php line 360
    apply_filters( 'cpto/interface/show_available_posts', TRUE, $current_location['post_types'] );
  • include/class.cpto.php line 79
    apply_filters( 'cpto/navigation_sort_apply', $navigation_sort_apply );
  • include/class.cpto.php line 1048
    apply_filters( "edit_{$post_type}_per_page", $objects_per_page );
  • include/class.functions.php line 669
    do_action( 'flying_press_purge_everything:after' );
  • include/class.functions.php line 660
    do_action( 'flying_press_purge_everything:before' );
  • include/class.options.php line 126
    do_action( 'pto/admin/plugin_options/capability' );
  • include/class.functions.php line 547
    apply_filters( 'pto/available_menu_locations', $locations );
  • include/class.functions.php line 61
    apply_filters( 'pto/edit_capability', $capability, $post_type_name );
  • include/class.functions.php line 88
    apply_filters( 'pto/get_options', $options );
  • include/class.walkers.php line 38
    apply_filters( 'pto/interface_item_data', '', $object );
  • include/class.interface.php line 648
    apply_filters( 'pto/interface/query/args', $args );
  • include/class.interface.php line 32
    apply_filters( 'pto/interface/query/limit', $this->items_limit );
  • include/class.walkers.php line 48
    apply_filters( 'pto/interface/table/tbody', '', $object );
  • include/class.cpto.php line 81
    apply_filters( 'pto/navigation_sort_apply', $navigation_sort_apply );
  • include/class.interface.php line 151
    apply_filters( 'pto/order_reset', $post_type );
  • include/class.cpto.php line 564
    apply_filters( 'pto/park_unordered_items_at', 999999999, $post_type );
  • include/class.cpto.php line 202
    apply_filters( 'pto/posts_orderby/ignore', FALSE, $orderBy, $query );
  • the_title

    filter
    include/class.walkers.php line 36
    apply_filters( 'the_title', $object->post_title, $object->ID );
  • include/class.cpto.php line 582
    apply_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: