Custom Post Type UI icon
Content & Editing

Custom Post Type UI hooks reference

  • By webdevstudios
  • v1.19.3
  • Updated

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.

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

  • inc/about.php line 54 · used in 6 places
    /**
     * Fires immediately after wrap div started on all of the cptui admin pages.
     */
    do_action( 'cptui_inside_wrap' );
  • custom-post-type-ui.php line 990 · used in 2 places
    /**
     * Filters the custom admin notice for CPTUI.
     */
    apply_filters( 'cptui_admin_notice', $messagewrapstart . $message . $messagewrapend, $action, $message, $messagewrapstart, $messagewrapend );
  • custom-post-type-ui.php line 362 · used in 2 places
    /**
     * Filters the map_meta_cap value.
     */
    apply_filters( 'cptui_map_meta_cap', true, $post_type['name'], $post_type );
  • inc/tools.php line 283 · used in 2 places
    /**
     * Filters whether or not 3rd party options were deleted successfully within
     * post type import.
     */
    apply_filters( 'cptui_post_type_import_delete_save', false, $postdata );
  • inc/post-types.php line 378 · used in 2 places
    /**
     * 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' ) );
  • inc/post-types.php line 366 · used in 2 places
    /**
     * 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' ) );
  • inc/post-types.php line 355 · used in 2 places
    /**
     * 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' ) );
  • inc/tools.php line 332 · used in 2 places
    /**
     * Filters whether or not 3rd party options were deleted successfully within
     * taxonomy import.
     */
    apply_filters( 'cptui_taxonomy_import_delete_save', false, $postdata );
  • inc/taxonomies.php line 432 · used in 2 places
    /**
     * 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' ) );
  • inc/taxonomies.php line 420 · used in 2 places
    /**
     * 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' ) );
  • inc/taxonomies.php line 409 · used in 2 places
    /**
     * 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' ) );
  • custom-post-type-ui.php line 377 · used in 2 places
    /**
     * Filters custom supports parameters for 3rd party plugins.
     */
    apply_filters( 'cptui_user_supports_params', [], $post_type['name'], $post_type );
  • cptui_ads

    filter
    inc/utility.php line 493
    /**
     * Filters the array of ads to iterate over.
     */
    apply_filters( 'cptui_ads', [] );
  • classes/class.cptui_debug_info.php line 248
    /**
     * Fires after the debug email has been sent.
     */
    do_action( 'cptui_after_debug_email_sent' );
  • inc/post-types.php line 2020
    /**
     * Fires after a post type is deleted from our saved options.
     */
    do_action( 'cptui_after_delete_post_type', $data );
  • inc/taxonomies.php line 1577
    /**
     * Fires after a taxonomy is deleted from our saved options.
     */
    do_action( 'cptui_after_delete_taxonomy', $data );
  • inc/listings.php line 278
    /**
     * Fires after the listing of registered post type data.
     */
    do_action( 'cptui_after_post_type_listing' );
  • inc/tools-sections/tools-debug.php line 46
    /**
     * Fires after the display of the site information.
     */
    do_action( 'cptui_after_site_info' );
  • inc/listings.php line 466
    /**
     * Fires after the listing of registered taxonomy data.
     */
    do_action( 'cptui_after_taxonomy_listing' );
  • inc/post-types.php line 2268
    /**
     * Fires after a post type is updated to our saved options.
     */
    do_action( 'cptui_after_update_post_type', $data );
  • inc/taxonomies.php line 1794
    /**
     * Fires after a taxonomy is updated to our saved options.
     */
    do_action( 'cptui_after_update_taxonomy', $data );
  • inc/taxonomies.php line 351
    /**
     * Filters the arguments for post types to list for taxonomy association.
     */
    apply_filters( 'cptui_attach_post_types_to_taxonomy', [ 'public' => true ] );
  • inc/post-types.php line 1757
    /**
     * Filters the arguments for taxonomies to list for post type association.
     */
    apply_filters( 'cptui_attach_taxonomies_to_post_type', [ 'public' => true ] );
  • inc/post-types.php line 1991
    /**
     * Fires before a post type is deleted from our saved options.
     */
    do_action( 'cptui_before_delete_post_type', $data );
  • inc/taxonomies.php line 1547
    /**
     * Fires before a taxonomy is deleted from our saved options.
     */
    do_action( 'cptui_before_delete_taxonomy', $data );
  • inc/listings.php line 98
    /**
     * Fires before the listing of registered post type data.
     */
    do_action( 'cptui_before_post_type_listing' );
  • inc/listings.php line 318
    /**
     * Fires before the listing of registered taxonomy data.
     */
    do_action( 'cptui_before_taxonomy_listing' );
  • inc/post-types.php line 2050
    /**
     * Fires before a post_type is updated to our saved options.
     */
    do_action( 'cptui_before_update_post_type', $data );
  • inc/taxonomies.php line 1607
    /**
     * Fires before a taxonomy is updated to our saved options.
     */
    do_action( 'cptui_before_update_taxonomy', $data );
  • inc/post-types.php line 222
    /**
     * Fires below the post type select input.
     */
    do_action( 'cptui_below_post_type_select', $current['name'] );
  • inc/post-types.php line 178
    /**
     * Fires below the output for the tab menu on the post type add/edit screen.
     */
    do_action( 'cptui_below_post_type_tab_menu' );
  • inc/taxonomies.php line 228
    /**
     * Fires below the taxonomy select input.
     */
    do_action( 'cptui_below_taxonomy_select', $current['name'] );
  • inc/taxonomies.php line 184
    /**
     * Fires below the output for the tab menu on the taxonomy add/edit screen.
     */
    do_action( 'cptui_below_taxonomy_tab_menu' );
  • inc/post-types.php line 2512
    /**
     * Whether or not to convert post type posts.
     */
    apply_filters( 'cptui_convert_post_type_posts', false );
  • inc/taxonomies.php line 2092
    /**
     * Whether or not to convert taxonomy terms.
     */
    apply_filters( 'cptui_convert_taxonomy_terms', false );
  • inc/post-types.php line 1958
    /**
     * Filters the current post type to edit.
     */
    apply_filters( 'cptui_current_post_type', $type );
  • inc/taxonomies.php line 1514
    /**
     * Filters the current taxonomy to edit.
     */
    apply_filters( 'cptui_current_taxonomy', $tax );
  • classes/class.cptui_debug_info.php line 167
    /**
     * Fires at the end of the debug info output.
     */
    do_action( 'cptui_custom_debug_info' );
  • classes/class.cptui_debug_info.php line 232
    /**
     * 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( '/' ) ) ) );
  • inc/tools-sections/tools-debug.php line 39
    /**
     * 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' ) );
  • custom-post-type-ui.php line 310
    /**
     * Filters whether or not to skip registration of the current iterated post
     * type.
     */
    apply_filters( "cptui_disable_{$post_type['name']}_cpt", false, $post_type );
  • custom-post-type-ui.php line 617
    /**
     * Filters whether or not to skip registration of the current iterated
     * taxonomy.
     */
    apply_filters( "cptui_disable_{$tax['name']}_tax", false, $tax );
  • custom-post-type-ui.php line 322
    /**
     * Filters whether or not to skip registration of the current iterated post
     * type.
     */
    apply_filters( 'cptui_disable_cpt', false, $post_type );
  • custom-post-type-ui.php line 629
    /**
     * Filters whether or not to skip registration of the current iterated
     * taxonomy.
     */
    apply_filters( 'cptui_disable_tax', false, $tax );
  • custom-post-type-ui.php line 150
    /**
     * Fires after the default submenu pages.
     */
    do_action( 'cptui_extra_menu_items', $parent_slug, $capability );
  • inc/utility.php line 304
    /**
     * 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 );
  • inc/taxonomies.php line 368
    /**
     * 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 );
  • custom-post-type-ui.php line 828
    /**
     * Filters the tabs to render on a given page.
     */
    apply_filters( 'cptui_get_tabs', [], $page );
  • inc/post-types.php line 1772
    /**
     * 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 );
  • inc/utility.php line 327
    /**
     * Filters the boolean value for if a taxonomy exists for 3rd parties.
     */
    apply_filters( 'cptui_get_taxonomy_exists', taxonomy_exists( $slug ), $data );
  • inc/tools.php line 196
    /**
     * 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
    custom-post-type-ui.php line 226
    /**
     * Fires upon init WordPress hook.
     */
    do_action( 'cptui_init' );
  • inc/tools.php line 173
    /**
     * 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' );
  • inc/listings.php line 61
    /**
     * Fires right inside the wrap div for the listings screen.
     */
    do_action( 'cptui_inside_listings_wrap' );
  • inc/post-types.php line 160
    /**
     * Fires right inside the wrap div for the post type editor screen.
     */
    do_action( 'cptui_inside_post_type_wrap' );
  • inc/taxonomies.php line 165
    /**
     * Fires right inside the wrap div for the taxonomy editor screen.
     */
    do_action( 'cptui_inside_taxonomy_wrap' );
  • inc/tools.php line 180
    /**
     * Fires right inside the wrap div for the tools pages.
     */
    do_action( 'cptui_inside_tools_wrap' );
  • inc/utility.php line 1025
    /**
     * Filters the new install status.
     */
    apply_filters( 'cptui_is_new_install', $new_or_not );
  • cptui_loaded

    action
    custom-post-type-ui.php line 182
    /**
     * Fires upon plugins_loaded WordPress hook.
     */
    do_action( 'cptui_loaded' );
  • inc/support.php line 318
    /**
     * Fires at the bottom of the FAQ/Support page.
     */
    do_action( 'cptui_main_page_after_faq' );
  • inc/about.php line 72
    /**
     * Fires after the main page `<h1>` heading tag.
     */
    do_action( 'cptui_main_page_after_header' );
  • inc/about.php line 86
    /**
     * Fires before the About Page changelog.
     */
    do_action( 'cptui_main_page_before_changelog' );
  • inc/support.php line 62
    /**
     * Fires at the top of the FAQ/Support page.
     */
    do_action( 'cptui_main_page_before_faq' );
  • inc/support.php line 305
    /**
     * Fires in the last table cell of the FAQ list.
     */
    do_action( 'cptui_main_page_custom_questions' );
  • inc/about.php line 97
    /**
     * Fires inside a div for extra notes.
     */
    do_action( 'cptui_main_page_extra_notes' );
  • inc/about.php line 61
    /**
     * Fires inside and at the top of the wrapper for the main plugin landing page.
     */
    do_action( 'cptui_main_page_start' );
  • inc/listings.php line 286
    /**
     * Fires when there are no registered post types to list.
     */
    do_action( 'cptui_no_post_types_listing' );
  • inc/listings.php line 475
    /**
     * Fires when there are no registered taxonomies to list.
     */
    do_action( 'cptui_no_taxonomies_listing' );
  • inc/utility.php line 249
    /**
     * Filters the string to be used in an `action=""` attribute.
     */
    apply_filters( 'cptui_post_form_action', '', $ui );
  • custom-post-type-ui.php line 337
    /**
     * Fires after the completion of the post type registrations.
     */
    do_action( 'cptui_post_register_post_types', $cpts );
  • custom-post-type-ui.php line 644
    /**
     * Fires after the completion of the taxonomy registrations.
     */
    do_action( 'cptui_post_register_taxonomies', $taxes );
  • inc/post-types.php line 1812
    /**
     * Fires after the default fieldsets on the post editor screen.
     */
    do_action( 'cptui_post_type_after_fieldsets', $ui );
  • inc/post-types.php line 2008
    /**
     * 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 );
  • inc/post-types.php line 169
    /**
     * Filters whether or not a post type was deleted.
     */
    apply_filters( 'cptui_post_type_deleted', false );
  • inc/tools.php line 304
    /**
     * 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 );
  • inc/post-types.php line 2121
    /**
     * 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 );
  • inc/post-types.php line 211
    /**
     * 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' ) );
  • inc/post-types.php line 2257
    /**
     * 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 );
  • inc/post-types.php line 1896
    /**
     * Filters the post type dropdown options before rendering.
     */
    apply_filters( 'cptui_post_types_dropdown_options', $select, $post_types );
  • custom-post-type-ui.php line 274
    /**
     * Filters an override array of post type data to be registered instead of our
     * saved option.
     */
    apply_filters( 'cptui_post_types_override', [] );
  • custom-post-type-ui.php line 560
    /**
     * Filters the arguments used for a post type right before registering.
     */
    apply_filters( 'cptui_pre_register_post_type', $args, $post_type['name'], $post_type );
  • custom-post-type-ui.php line 292
    /**
     * Fires before the start of the post type registrations.
     */
    do_action( 'cptui_pre_register_post_types', $cpts );
  • custom-post-type-ui.php line 599
    /**
     * Fires before the start of the taxonomy registrations.
     */
    do_action( 'cptui_pre_register_taxonomies', $taxes );
  • custom-post-type-ui.php line 805
    /**
     * Filters the arguments used for a taxonomy right before registering.
     */
    apply_filters( 'cptui_pre_register_taxonomy', $args, $taxonomy['name'], $taxonomy, $object_type );
  • inc/post-types.php line 2246
    /**
     * Filters final data to be saved right before saving post type data.
     */
    apply_filters( 'cptui_pre_save_post_type', $post_types, $name );
  • inc/taxonomies.php line 1772
    /**
     * Filters final data to be saved right before saving taxoomy data.
     */
    apply_filters( 'cptui_pre_save_taxonomy', $taxonomies, $name );
  • custom-post-type-ui.php line 132
    /**
     * Filters the required capability to manage CPTUI settings.
     */
    apply_filters( 'cptui_required_capabilities', 'manage_options' );
  • inc/post-types.php line 2322
    /**
     * Filters the list of reserved post types to check against.
     */
    apply_filters( 'cptui_reserved_post_types', [] );
  • inc/taxonomies.php line 1917
    /**
     * 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', [] );
  • inc/taxonomies.php line 1452
    /**
     * Filters the taxonomy dropdown options before rendering.
     */
    apply_filters( 'cptui_taxonomies_dropdown_options', $select, $taxonomies );
  • custom-post-type-ui.php line 581
    /**
     * Filters an override array of taxonomy data to be registered instead of our
     * saved option.
     */
    apply_filters( 'cptui_taxonomies_override', [] );
  • inc/taxonomies.php line 1361
    /**
     * Fires after the default fieldsets on the taxonomy screen.
     */
    do_action( 'cptui_taxonomy_after_fieldsets', $ui );
  • inc/taxonomies.php line 1564
    /**
     * Filters whether or not 3rd party options were saved successfully within
     * taxonomy deletion.
     */
    apply_filters( 'cptui_taxonomy_delete_tax', false, $taxonomies, $data );
  • inc/taxonomies.php line 174
    /**
     * Filters whether or not a taxonomy was deleted.
     */
    apply_filters( 'cptui_taxonomy_deleted', false );
  • inc/tools.php line 352
    /**
     * Filters whether or not 3rd party options were updated successfully within
     * the taxonomy import.
     */
    apply_filters( 'cptui_taxonomy_import_update_save', false, $postdata );
  • inc/taxonomies.php line 1683
    /**
     * Check if we already have a post type of that name.
     */
    apply_filters( 'cptui_taxonomy_slug_exists', false, $data['cpt_custom_tax']['name'], $taxonomies );
  • inc/taxonomies.php line 217
    /**
     * Filters the text value to use on the select taxonomy button.
     */
    apply_filters( 'cptui_taxonomy_submit_select', esc_attr__( 'Select', 'custom-post-type-ui' ) );
  • inc/taxonomies.php line 1783
    /**
     * Filters whether or not 3rd party options were saved successfully within
     * taxonomy add/update.
     */
    apply_filters( 'cptui_taxonomy_update_save', false, $taxonomies, $data );
  • inc/tools.php line 244
    /**
     * Filters the post type data to import.
     */
    apply_filters( 'cptui_third_party_post_type_import', false );
  • inc/tools.php line 255
    /**
     * Filters the taxonomy data to import.
     */
    apply_filters( 'cptui_third_party_taxonomy_import', false );
  • inc/tools.php line 207
    /**
     * Fires inside the markup for the tools section.
     */
    do_action( 'cptui_tools_sections', $tab );
  • inc/tools.php line 131
    /**
     * Filters the tabs being added for the tools area.
     */
    apply_filters( 'cptui_tools_tabs', $tabs, $action, $active_class );
  • external/wpml.php line 78 · used in 6 places
    do_action( 'wpml_register_string', $data['label'], 'name', $package, esc_html__( 'Name (plural)', 'custom-post-type-ui' ), 'LINE' );
  • external/wpml.php line 162 · used in 6 places
    apply_filters( 'wpml_translate_string', $val, $key, $package );
  • external/wpml.php line 131 · used in 2 places
    do_action( 'wpml_delete_package', $data['name'], 'CPTUI Post Type' );
  • external/wpml.php line 91 · used in 2 places
    do_action( 'wpml_delete_unused_package_strings', $package );
  • external/wpml.php line 76 · used in 2 places
    do_action( 'wpml_start_string_package_registration', $package );
  • inc/utility.php line 963
    apply_filters( 'cptui_custom_error_message', '' );
  • inc/post-types.php line 2587
    apply_filters( 'cptui_filtered_post_type_post_global_arrays', (array) [] );
  • inc/post-types.php line 2606
    apply_filters( 'cptui_filtered_post_type_post_global_strings', (array) [] );
  • inc/taxonomies.php line 2148
    apply_filters( 'cptui_filtered_taxonomy_post_global_arrays', (array) [] );
  • inc/taxonomies.php line 2167
    apply_filters( 'cptui_filtered_taxonomy_post_global_strings', (array) [] );
  • inc/utility.php line 271
    apply_filters( 'cptui_get_post_type_data', get_option( 'cptui_post_types', [] ), get_current_blog_id() );
  • inc/utility.php line 282
    apply_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: