Custom Post Type Permalinks 3.5.6 has 8 actions and 16 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 Custom Post Type Permalinks fires an action
add_action( 'CPTP_init', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Custom Post Type Permalinks is about to use
add_filter( 'CPTP_is_rewrite_supported', function( $support, $post_type ) {
// Change $support here.
return $support;
}, 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
-
CPTP_is_rewrite_supported
filter/** * Filters support CPTP for custom post type. */ apply_filters( 'CPTP_is_rewrite_supported', $support, $post_type ); -
/** * Filters support CPTP for custom post type. */ apply_filters( "CPTP_is_rewrite_supported_by_{$post_type}", $support ); -
cptp_post_link_category
filter/** * Filters the category for a post of a custom post type. */ apply_filters( 'cptp_post_link_category', $category_object, $categories, $post ); -
cptp_post_link_term
filter/** * Filters the term for a post of a custom post type. */ apply_filters( 'cptp_post_link_term', $term_obj, $terms, $taxonomy, $post ); -
apply_filters( "CPTP_{$post_type->name}_structure", $structure ); -
apply_filters( "cptp_{$post_type->name}_structure", $structure ); -
apply_filters( 'cptp_attachment_link_priority', 20 ); -
CPTP_date_front
filterapply_filters( 'CPTP_date_front', $front, $post_type, $structure ); -
cptp_date_front
filterapply_filters( 'cptp_date_front', $front, $post_type, $structure ); -
CPTP_init
actiondo_action( 'CPTP_init' ); -
cptp_init
actiondo_action( 'cptp_init' ); -
cptp_is_rewrite_supported
filterapply_filters( 'cptp_is_rewrite_supported', $support, $post_type ); -
apply_filters( "cptp_is_rewrite_supported_by_{$post_type}", $support ); -
CPTP_load_modules
actiondo_action( 'CPTP_load_modules', $this ); -
cptp_load_modules
actiondo_action( 'cptp_load_modules', $this ); -
cptp_post_type_link_priority
filterapply_filters( 'cptp_post_type_link_priority', 0 ); -
do_action( "CPTP_registered_{$post_type}_rules", $args, $slug ); -
do_action( "CPTP_registered_{$taxonomy}_rules", $object_type, $args, $taxonomy_slug ); -
CPTP_registered_modules
actiondo_action( 'CPTP_registered_modules', $this ); -
cptp_registered_modules
actiondo_action( 'cptp_registered_modules', $this ); -
CPTP_set_{$name}_module
filterapply_filters( "CPTP_set_{$name}_module", $module ); -
cptp_set_{$name}_module
filterapply_filters( "cptp_set_{$name}_module", $module ); -
cptp_term_link_priority
filterapply_filters( 'cptp_term_link_priority', 0 ); -
post_link_category
filterapply_filters( 'post_link_category', $category_object, $categories, $post );
Generated from Custom Post Type Permalinks'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: