Custom Post Type UI Hooks

Current as of version 1.12.0. Reach out if you’ve found one we’re missing.

Custom Post Type UI has 107 action and filter hooks available for usage. Some may prove more useful than others. Some are used primarily for integration with Custom Post Type UI Extended. Would love to hear how you’re using any of them.

This is also a work in progress as we continue getting descriptions and hook parameters documented.

Registration file

This is the custom-post-type-ui.php file where all the actual registration occurs for your post types and taxonomies.

Action hooks

7 available

cptui_extra_menu_items
cptui_loaded
cptui_init
cptui_pre_register_post_types
cptui_post_register_post_types
cptui_pre_register_taxonomies
cptui_post_register_taxonomies

Filter hooks

13 available

cptui_admin_notice
cptui_disable_cpt
cptui_disable_tax
cptui_disable_{$post_type['name']}_cpt
cptui_disable_{$tax['name']}_tax
cptui_get_tabs
cptui_map_meta_cap
cptui_post_types_override
cptui_pre_register_post_type
cptui_pre_register_taxonomy
cptui_required_capabilities
cptui_taxonomies_override
cptui_user_supports_params

Post Types page

Action hooks

8 available

cptui_after_delete_post_type
cptui_after_update_post_type
cptui_before_delete_post_type
cptui_before_update_post_type
cptui_below_post_type_select
cptui_below_post_type_tab_menu
cptui_inside_post_type_wrap
cptui_post_type_after_fieldsets

Filter hooks

17 available

cptui_attach_taxonomies_to_post_type
cptui_convert_post_type_posts
cptui_current_post_type
cptui_filtered_post_type_post_global_arrays
cptui_filtered_post_type_post_global_strings
cptui_get_taxonomies_for_post_types
cptui_post_type_delete_type
cptui_post_type_deleted
cptui_post_type_slug_exists
cptui_post_type_submit_add
cptui_post_type_submit_delete
cptui_post_type_submit_edit
cptui_post_type_submit_select
cptui_post_type_update_save
cptui_post_types_dropdown_options
cptui_pre_save_post_type
cptui_reserved_post_types

Taxonomies page

Action hooks

8 available

cptui_after_delete_taxonomy
cptui_after_update_taxonomy
cptui_before_delete_taxonomy
cptui_before_update_taxonomy
cptui_below_taxonomy_select
cptui_below_taxonomy_tab_menu
cptui_inside_taxonomy_wrap
cptui_taxonomy_after_fieldsets

Filter hooks

15 available

cptui_attach_post_types_to_taxonomy
cptui_convert_taxonomy_terms
cptui_current_taxonomy
cptui_get_post_types_for_taxonomies
cptui_pre_save_taxonomy
cptui_reserved_taxonomies
cptui_taxonomies_dropdown_options
cptui_taxonomy_delete_tax
cptui_taxonomy_deleted
cptui_taxonomy_slug_exists
cptui_taxonomy_submit_add
cptui_taxonomy_submit_delete
cptui_taxonomy_submit_edit
cptui_taxonomy_submit_select
cptui_taxonomy_update_save

Listings page

Action hooks

7 available

cptui_inside_listings_wrap
cptui_before_post_type_listing
cptui_after_post_type_listing
cptui_no_post_types_listing
cptui_before_taxonomy_listing
cptui_after_taxonomy_listing
cptui_no_taxonomies_listing

Filter hooks

0 available

Tools page

Action hooks

3 available
2 deprecated

cptui_inside_tools_wrap
cptui_tools_sections
cptui_after_site_info

#

If you find any of these, please update to appropriate hook.

cptui_inside_importexport_wrap
cptui_import_export_sections

Filter hooks

10 available

cptui_tools_tabs
cptui_map_meta_cap
cptui_user_supports_params
cptui_third_party_post_type_import
cptui_third_party_taxonomy_import
cptui_post_type_import_delete_save
cptui_post_type_import_update_save
cptui_taxonomy_import_delete_save
cptui_taxonomy_import_update_save
cptui_debug_email_submit_button

Support page

Action hooks

3 available

cptui_main_page_before_faq
cptui_main_page_custom_questions
cptui_main_page_after_faq

Filter hooks

0 available

Utility functions

9 available

These are hooks available in the various functions from our utility.php file

cptui_post_form_action
cptui_get_post_type_data
cptui_get_taxonomy_data
cptui_get_post_type_exists
cptui_get_taxonomy_exists
cptui_ads
cptui_admin_notice
cptui_custom_error_message
cptui_is_new_install

Debug information page

Action hooks

2 available

cptui_custom_debug_info
cptui_after_debug_email_sent

Filter hooks

1 available

cptui_debug_email_subject

About page

Action hooks

4 Available
cptui_main_page_start
cptui_main_page_after_header
cptui_main_page_before_changelog
cptui_main_page_extra_notes

Filter hooks

0 available