Custom Post Type UI 1.19.3 has 49 actions and 65 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 UI fires an action
add_action( 'cptui_inside_wrap', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Custom Post Type UI is about to use
add_filter( 'cptui_admin_notice', function( $value, $action, $message, $messagewrapstart, $messagewrapend ) {
// Change $value here.
return $value;
}, 10, 5 );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
-
cptui_inside_wrap
action/** * Fires immediately after wrap div started on all of the cptui admin pages. */ do_action( 'cptui_inside_wrap' ); -
cptui_admin_notice
filter/** * Filters the custom admin notice for CPTUI. */ apply_filters( 'cptui_admin_notice', $messagewrapstart . $message . $messagewrapend, $action, $message, $messagewrapstart, $messagewrapend ); -
cptui_map_meta_cap
filter/** * Filters the map_meta_cap value. */ apply_filters( 'cptui_map_meta_cap', true, $post_type['name'], $post_type ); -
/** * Filters whether or not 3rd party options were deleted successfully within * post type import. */ apply_filters( 'cptui_post_type_import_delete_save', false, $postdata ); -
cptui_post_type_submit_add
filter/** * Filters the text value to use on the button when adding. */ apply_filters( 'cptui_post_type_submit_add', esc_attr__( 'Add Post Type', 'custom-post-type-ui' ) ); -
/** * Filters the text value to use on the button when deleting. */ apply_filters( 'cptui_post_type_submit_delete', esc_attr__( 'Delete Post Type', 'custom-post-type-ui' ) ); -
cptui_post_type_submit_edit
filter/** * Filters the text value to use on the button when editing. */ apply_filters( 'cptui_post_type_submit_edit', esc_attr__( 'Save Post Type', 'custom-post-type-ui' ) ); -
/** * Filters whether or not 3rd party options were deleted successfully within * taxonomy import. */ apply_filters( 'cptui_taxonomy_import_delete_save', false, $postdata ); -
cptui_taxonomy_submit_add
filter/** * Filters the text value to use on the button when adding. */ apply_filters( 'cptui_taxonomy_submit_add', esc_attr__( 'Add Taxonomy', 'custom-post-type-ui' ) ); -
cptui_taxonomy_submit_delete
filter/** * Filters the text value to use on the button when deleting. */ apply_filters( 'cptui_taxonomy_submit_delete', esc_attr__( 'Delete Taxonomy', 'custom-post-type-ui' ) ); -
cptui_taxonomy_submit_edit
filter/** * Filters the text value to use on the button when editing. */ apply_filters( 'cptui_taxonomy_submit_edit', esc_attr__( 'Save Taxonomy', 'custom-post-type-ui' ) ); -
cptui_user_supports_params
filter/** * Filters custom supports parameters for 3rd party plugins. */ apply_filters( 'cptui_user_supports_params', [], $post_type['name'], $post_type ); -
cptui_ads
filter/** * Filters the array of ads to iterate over. */ apply_filters( 'cptui_ads', [] ); -
cptui_after_debug_email_sent
action/** * Fires after the debug email has been sent. */ do_action( 'cptui_after_debug_email_sent' ); -
cptui_after_delete_post_type
action/** * Fires after a post type is deleted from our saved options. */ do_action( 'cptui_after_delete_post_type', $data ); -
cptui_after_delete_taxonomy
action/** * Fires after a taxonomy is deleted from our saved options. */ do_action( 'cptui_after_delete_taxonomy', $data ); -
/** * Fires after the listing of registered post type data. */ do_action( 'cptui_after_post_type_listing' ); -
cptui_after_site_info
action/** * Fires after the display of the site information. */ do_action( 'cptui_after_site_info' ); -
cptui_after_taxonomy_listing
action/** * Fires after the listing of registered taxonomy data. */ do_action( 'cptui_after_taxonomy_listing' ); -
cptui_after_update_post_type
action/** * Fires after a post type is updated to our saved options. */ do_action( 'cptui_after_update_post_type', $data ); -
cptui_after_update_taxonomy
action/** * Fires after a taxonomy is updated to our saved options. */ do_action( 'cptui_after_update_taxonomy', $data ); -
/** * Filters the arguments for post types to list for taxonomy association. */ apply_filters( 'cptui_attach_post_types_to_taxonomy', [ 'public' => true ] ); -
/** * Filters the arguments for taxonomies to list for post type association. */ apply_filters( 'cptui_attach_taxonomies_to_post_type', [ 'public' => true ] ); -
/** * Fires before a post type is deleted from our saved options. */ do_action( 'cptui_before_delete_post_type', $data ); -
cptui_before_delete_taxonomy
action/** * Fires before a taxonomy is deleted from our saved options. */ do_action( 'cptui_before_delete_taxonomy', $data ); -
/** * Fires before the listing of registered post type data. */ do_action( 'cptui_before_post_type_listing' ); -
/** * Fires before the listing of registered taxonomy data. */ do_action( 'cptui_before_taxonomy_listing' ); -
/** * Fires before a post_type is updated to our saved options. */ do_action( 'cptui_before_update_post_type', $data ); -
cptui_before_update_taxonomy
action/** * Fires before a taxonomy is updated to our saved options. */ do_action( 'cptui_before_update_taxonomy', $data ); -
cptui_below_post_type_select
action/** * Fires below the post type select input. */ do_action( 'cptui_below_post_type_select', $current['name'] ); -
cptui_below_taxonomy_select
action/** * Fires below the taxonomy select input. */ do_action( 'cptui_below_taxonomy_select', $current['name'] ); -
/** * Whether or not to convert post type posts. */ apply_filters( 'cptui_convert_post_type_posts', false ); -
cptui_convert_taxonomy_terms
filter/** * Whether or not to convert taxonomy terms. */ apply_filters( 'cptui_convert_taxonomy_terms', false ); -
cptui_current_post_type
filter/** * Filters the current post type to edit. */ apply_filters( 'cptui_current_post_type', $type ); -
cptui_current_taxonomy
filter/** * Filters the current taxonomy to edit. */ apply_filters( 'cptui_current_taxonomy', $tax ); -
cptui_custom_debug_info
action/** * Fires at the end of the debug info output. */ do_action( 'cptui_custom_debug_info' ); -
cptui_debug_email_subject
filter/** * Filters the debug email subject. */ apply_filters( 'cptui_debug_email_subject', sprintf( esc_html__( 'Custom Post Type UI debug information for %s', 'custom-post-type-ui' ), esc_url( home_url( '/' ) ) ) ); -
/** * Filters the text value to use on the button when sending debug information. */ apply_filters( 'cptui_debug_email_submit_button', __( 'Send debug info', 'custom-post-type-ui' ) ); -
/** * Filters whether or not to skip registration of the current iterated post * type. */ apply_filters( "cptui_disable_{$post_type['name']}_cpt", false, $post_type ); -
/** * Filters whether or not to skip registration of the current iterated * taxonomy. */ apply_filters( "cptui_disable_{$tax['name']}_tax", false, $tax ); -
cptui_disable_cpt
filter/** * Filters whether or not to skip registration of the current iterated post * type. */ apply_filters( 'cptui_disable_cpt', false, $post_type ); -
cptui_disable_tax
filter/** * Filters whether or not to skip registration of the current iterated * taxonomy. */ apply_filters( 'cptui_disable_tax', false, $tax ); -
cptui_get_post_type_exists
filter/** * Filters the boolean value for if a post type exists for 3rd parties. */ apply_filters( 'cptui_get_post_type_exists', post_type_exists( $slug ), $data ); -
/** * Filters the results returned to display for available post types for * taxonomy. */ apply_filters( 'cptui_get_post_types_for_taxonomies', get_post_types( $args, $output ), $args, $output ); -
cptui_get_tabs
filter/** * Filters the tabs to render on a given page. */ apply_filters( 'cptui_get_tabs', [], $page ); -
/** * Filters the results returned to display for available taxonomies for post * type. */ apply_filters( 'cptui_get_taxonomies_for_post_types', get_taxonomies( $args, 'objects' ), $args ); -
cptui_get_taxonomy_exists
filter/** * Filters the boolean value for if a taxonomy exists for 3rd parties. */ apply_filters( 'cptui_get_taxonomy_exists', taxonomy_exists( $slug ), $data ); -
cptui_import_export_sections
action/** * Fires inside the markup for the import/export section. */ do_action_deprecated( 'cptui_import_export_sections', [ $tab ], '1.5.0', 'cptui_tools_sections' ); -
cptui_init
action/** * Fires upon init WordPress hook. */ do_action( 'cptui_init' ); -
/** * Fires right inside the wrap div for the import/export pages. */ do_action_deprecated( 'cptui_inside_importexport_wrap', [], '1.5.0', 'cptui_inside_tools_wrap' ); -
cptui_inside_listings_wrap
action/** * Fires right inside the wrap div for the listings screen. */ do_action( 'cptui_inside_listings_wrap' ); -
cptui_inside_post_type_wrap
action/** * Fires right inside the wrap div for the post type editor screen. */ do_action( 'cptui_inside_post_type_wrap' ); -
cptui_inside_taxonomy_wrap
action/** * Fires right inside the wrap div for the taxonomy editor screen. */ do_action( 'cptui_inside_taxonomy_wrap' ); -
cptui_inside_tools_wrap
action/** * Fires right inside the wrap div for the tools pages. */ do_action( 'cptui_inside_tools_wrap' ); -
cptui_is_new_install
filter/** * Filters the new install status. */ apply_filters( 'cptui_is_new_install', $new_or_not ); -
cptui_loaded
action/** * Fires upon plugins_loaded WordPress hook. */ do_action( 'cptui_loaded' ); -
cptui_main_page_after_faq
action/** * Fires at the bottom of the FAQ/Support page. */ do_action( 'cptui_main_page_after_faq' ); -
cptui_main_page_after_header
action/** * Fires after the main page `<h1>` heading tag. */ do_action( 'cptui_main_page_after_header' ); -
/** * Fires before the About Page changelog. */ do_action( 'cptui_main_page_before_changelog' ); -
cptui_main_page_before_faq
action/** * Fires at the top of the FAQ/Support page. */ do_action( 'cptui_main_page_before_faq' ); -
/** * Fires in the last table cell of the FAQ list. */ do_action( 'cptui_main_page_custom_questions' ); -
cptui_main_page_extra_notes
action/** * Fires inside a div for extra notes. */ do_action( 'cptui_main_page_extra_notes' ); -
cptui_main_page_start
action/** * Fires inside and at the top of the wrapper for the main plugin landing page. */ do_action( 'cptui_main_page_start' ); -
cptui_no_post_types_listing
action/** * Fires when there are no registered post types to list. */ do_action( 'cptui_no_post_types_listing' ); -
cptui_no_taxonomies_listing
action/** * Fires when there are no registered taxonomies to list. */ do_action( 'cptui_no_taxonomies_listing' ); -
cptui_post_form_action
filter/** * Filters the string to be used in an `action=""` attribute. */ apply_filters( 'cptui_post_form_action', '', $ui ); -
/** * Fires after the completion of the post type registrations. */ do_action( 'cptui_post_register_post_types', $cpts ); -
/** * Fires after the completion of the taxonomy registrations. */ do_action( 'cptui_post_register_taxonomies', $taxes ); -
/** * Fires after the default fieldsets on the post editor screen. */ do_action( 'cptui_post_type_after_fieldsets', $ui ); -
cptui_post_type_delete_type
filter/** * Filters whether or not 3rd party options were saved successfully within post * type deletion. */ apply_filters( 'cptui_post_type_delete_type', false, $post_types, $data ); -
cptui_post_type_deleted
filter/** * Filters whether or not a post type was deleted. */ apply_filters( 'cptui_post_type_deleted', false ); -
/** * Filters whether or not 3rd party options were updated successfully within * the post type import. */ apply_filters( 'cptui_post_type_import_update_save', false, $postdata ); -
cptui_post_type_slug_exists
filter/** * Check if we already have a post type of that name. */ apply_filters( 'cptui_post_type_slug_exists', false, $data['cpt_custom_post_type']['name'], $post_types ); -
/** * Filters the text value to use on the select post type button. */ apply_filters( 'cptui_post_type_submit_select', esc_attr__( 'Select', 'custom-post-type-ui' ) ); -
cptui_post_type_update_save
filter/** * Filters whether or not 3rd party options were saved successfully within post * type add/update. */ apply_filters( 'cptui_post_type_update_save', false, $post_types, $data ); -
/** * Filters the post type dropdown options before rendering. */ apply_filters( 'cptui_post_types_dropdown_options', $select, $post_types ); -
cptui_post_types_override
filter/** * Filters an override array of post type data to be registered instead of our * saved option. */ apply_filters( 'cptui_post_types_override', [] ); -
cptui_pre_register_post_type
filter/** * Filters the arguments used for a post type right before registering. */ apply_filters( 'cptui_pre_register_post_type', $args, $post_type['name'], $post_type ); -
/** * Fires before the start of the post type registrations. */ do_action( 'cptui_pre_register_post_types', $cpts ); -
/** * Fires before the start of the taxonomy registrations. */ do_action( 'cptui_pre_register_taxonomies', $taxes ); -
cptui_pre_register_taxonomy
filter/** * Filters the arguments used for a taxonomy right before registering. */ apply_filters( 'cptui_pre_register_taxonomy', $args, $taxonomy['name'], $taxonomy, $object_type ); -
cptui_pre_save_post_type
filter/** * Filters final data to be saved right before saving post type data. */ apply_filters( 'cptui_pre_save_post_type', $post_types, $name ); -
cptui_pre_save_taxonomy
filter/** * Filters final data to be saved right before saving taxoomy data. */ apply_filters( 'cptui_pre_save_taxonomy', $taxonomies, $name ); -
cptui_required_capabilities
filter/** * Filters the required capability to manage CPTUI settings. */ apply_filters( 'cptui_required_capabilities', 'manage_options' ); -
cptui_reserved_post_types
filter/** * Filters the list of reserved post types to check against. */ apply_filters( 'cptui_reserved_post_types', [] ); -
cptui_reserved_taxonomies
filter/** * Filters the list of reserved post types to check against. 3rd party plugin * authors could use this to prevent duplicate post types. */ apply_filters( 'cptui_reserved_taxonomies', [] ); -
/** * Filters the taxonomy dropdown options before rendering. */ apply_filters( 'cptui_taxonomies_dropdown_options', $select, $taxonomies ); -
cptui_taxonomies_override
filter/** * Filters an override array of taxonomy data to be registered instead of our * saved option. */ apply_filters( 'cptui_taxonomies_override', [] ); -
/** * Fires after the default fieldsets on the taxonomy screen. */ do_action( 'cptui_taxonomy_after_fieldsets', $ui ); -
cptui_taxonomy_delete_tax
filter/** * Filters whether or not 3rd party options were saved successfully within * taxonomy deletion. */ apply_filters( 'cptui_taxonomy_delete_tax', false, $taxonomies, $data ); -
cptui_taxonomy_deleted
filter/** * Filters whether or not a taxonomy was deleted. */ apply_filters( 'cptui_taxonomy_deleted', false ); -
/** * Filters whether or not 3rd party options were updated successfully within * the taxonomy import. */ apply_filters( 'cptui_taxonomy_import_update_save', false, $postdata ); -
cptui_taxonomy_slug_exists
filter/** * Check if we already have a post type of that name. */ apply_filters( 'cptui_taxonomy_slug_exists', false, $data['cpt_custom_tax']['name'], $taxonomies ); -
cptui_taxonomy_submit_select
filter/** * Filters the text value to use on the select taxonomy button. */ apply_filters( 'cptui_taxonomy_submit_select', esc_attr__( 'Select', 'custom-post-type-ui' ) ); -
cptui_taxonomy_update_save
filter/** * Filters whether or not 3rd party options were saved successfully within * taxonomy add/update. */ apply_filters( 'cptui_taxonomy_update_save', false, $taxonomies, $data ); -
/** * Filters the post type data to import. */ apply_filters( 'cptui_third_party_post_type_import', false ); -
/** * Filters the taxonomy data to import. */ apply_filters( 'cptui_third_party_taxonomy_import', false ); -
cptui_tools_sections
action/** * Fires inside the markup for the tools section. */ do_action( 'cptui_tools_sections', $tab ); -
cptui_tools_tabs
filter/** * Filters the tabs being added for the tools area. */ apply_filters( 'cptui_tools_tabs', $tabs, $action, $active_class ); -
wpml_register_string
actiondo_action( 'wpml_register_string', $data['label'], 'name', $package, esc_html__( 'Name (plural)', 'custom-post-type-ui' ), 'LINE' ); -
wpml_translate_string
filterapply_filters( 'wpml_translate_string', $val, $key, $package ); -
wpml_delete_package
actiondo_action( 'wpml_delete_package', $data['name'], 'CPTUI Post Type' ); -
do_action( 'wpml_delete_unused_package_strings', $package ); -
do_action( 'wpml_start_string_package_registration', $package ); -
cptui_custom_error_message
filterapply_filters( 'cptui_custom_error_message', '' ); -
apply_filters( 'cptui_filtered_post_type_post_global_arrays', (array) [] ); -
apply_filters( 'cptui_filtered_post_type_post_global_strings', (array) [] ); -
apply_filters( 'cptui_filtered_taxonomy_post_global_arrays', (array) [] ); -
apply_filters( 'cptui_filtered_taxonomy_post_global_strings', (array) [] ); -
cptui_get_post_type_data
filterapply_filters( 'cptui_get_post_type_data', get_option( 'cptui_post_types', [] ), get_current_blog_id() ); -
cptui_get_taxonomy_data
filterapply_filters( 'cptui_get_taxonomy_data', get_option( 'cptui_taxonomies', [] ), get_current_blog_id() );
Generated from Custom Post Type UI'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: