Easy Post Types and Fields 1.1.14 has 12 actions and 30 filters, read directly from its source code on Nov 18, 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.
// Change a value Easy Post Types and Fields is about to use
add_filter( 'barn2_edd_licensing_api_endpoint', function( $endpoint, $object, $params ) {
// Change $endpoint here.
return $endpoint;
}, 10, 3 );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
-
barn2_wc_settings_custom_fields_load_scripts_{$this->plugin->get_slug()}
filter Copy link Customise this hook/** * Filter to determine if the custom fields scripts should be loaded. */ apply_filters( "barn2_wc_settings_custom_fields_load_scripts_{$this->plugin->get_slug()}", \true, $this->plugin ); -
/** * Fires after the plugin is updated. */ do_action( "{$this->plugin->get_slug()}_updated", $db_version, $code_version, $this->plugin ); -
/** * Filter the EDD Software Licensing API endpoint. */ apply_filters( 'barn2_edd_licensing_api_endpoint', $endpoint, $this, $params ); -
/** * Fires after the activation process has completed. */ do_action( "barn2_license_after_activate_{$this->item_id}", $license_key, $url_to_activate, $license_data, $result ); -
/** * Fires after the deactivation process has completed. */ do_action( "barn2_license_after_deactivate_{$this->item_id}", $license_key, $url_to_deactivate, $license_data, $result ); -
/** * Fires after the license has been overridden. */ do_action( "barn2_license_after_override_{$this->item_id}", $license_key, $url_to_activate, $license_data, \true ); -
/** * Fires after the refresh process has completed. */ do_action( "barn2_license_after_refresh_{$this->item_id}", $license_key, $url_to_refresh, $license_data, $result ); -
/** * Filters the list of help links used at the top of the plugin settings page. */ apply_filters( 'barn2_plugin_settings_help_links', ['doc' => ['url' => $plugin->get_documentation_url(), 'label' => __('Documentation', 'barn2'), 'target' => '_blank'], 'support' => ['url' => $plugin->get_support_url(), 'label' => __('Support', 'barn2'), 'target' => '_blank']], $plugin ); -
/** * Filter the number of items per page for the custom field list table */ apply_filters( 'edit_ept_fields_per_page', $this->get_items_per_page( 'edit_ept_fields_per_page' ) ); -
/** * Filter the number of items per page for the post type list table */ apply_filters( 'edit_ept_post_types_per_page', $this->get_items_per_page( 'edit_ept_post_types_per_page' ) ); -
/** * Filter the number of items per page for the taxonomy list table */ apply_filters( 'edit_ept_taxonomies_per_page', $this->get_items_per_page( 'edit_ept_taxonomies_per_page' ) ); -
/** * Filter the arguments passed to the `wp_editor` function that output the * WYSIWYG editor in the custom field meta box. */ apply_filters( "ept_{$post_type}_field_editor_args", [ 'textarea_rows' => 5 ], $field, $post_type ); -
/** * Filter the attributes added to the text input element in the custom field * metabox */ apply_filters( "ept_{$post_type}_field_text_input_attributes", [], $field, $post_type ); -
/** * Filter the list of shortcodes that use a Barn2 Table implementation */ apply_filters( 'ept_barn2_table_plugins', [ 'posts_table' => [ 'prefix' => 'posts_table', ], 'doc_library' => [ 'prefix' => 'document_library_pro', 'post_type' => 'dlp_document', 'filter' => [ 'hook' => 'document_library_pro_filled_args', ], ], 'product_table' => [ 'prefix' => 'wc_product_table', 'post_type' => 'product', ], ] ); -
/** * Filter the arguments to register a custom field */ apply_filters( "ept_field_{$this->key}_args", wp_parse_args( $args, $default_args ) ); -
/** * Fires after the content of the metabox is output */ do_action( "ept_post_type_{$post_type}_after_metabox" ); -
/** * Fires before a field input is output in the metabox */ do_action( "ept_post_type_{$post_type}_after_metabox_field", $meta_key, $meta_value ); -
/** * Fires before the content of the metabox is output */ do_action( "ept_post_type_{$post_type}_before_metabox" ); -
/** * Fires before a field input is output in the metabox */ do_action( "ept_post_type_{$post_type}_before_metabox_field", $meta_key, $meta_value ); -
/** * Filter the arguments to register a custom post type */ apply_filters( "ept_post_type_{$this->slug}_args", wp_parse_args( $args, $default_args ) ); -
/** * Filter the labels used to register the custom post type. */ apply_filters( "ept_post_type_{$this->slug}_labels", $this->default_labels() ); -
/** * Filter the arguments to register a custom taxonomy */ apply_filters( "ept_taxonomy_{$this->taxonomy}_args", wp_parse_args( $args, $default_args ) ); -
/** * Filter the default labels of a custom taxonomy */ apply_filters( "ept_taxonomy_{$this->taxonomy}_labels", $this->default_labels() ); -
/** * Filter the heading of each column in the custom field list table */ apply_filters( 'manage_ept_fields_columns', $columns ); -
/** * Filter the heading of each column in the post type list table */ apply_filters( 'manage_ept_post_types_columns', $columns ); -
/** * Filter the heading of each column in the taxonomy list table */ apply_filters( 'manage_ept_taxonomies_columns', $columns ); -
/** * Allow filtering the allowed HTML tags array. */ apply_filters( 'wptrt_admin_notices_allowed_html', $this->allowed_html ); -
do_action( "barn2_license_activated_{$this->item_id}", $license_key, $url_to_activate ); -
apply_filters( 'barn2_plugin_allow_automatic_update', \true, $this->plugin ); -
apply_filters( 'barn2_api_url', $url, $relative_path ); -
apply_filters( 'barn2_edd_licensing_api_request_args', ['timeout' => self::API_TIMEOUT, 'body' => $params] ); -
apply_filters( 'barn2_edd_store_url', $url, $relative_path ); -
apply_filters( 'barn2_kb_url', $url ); -
do_action( "barn2_license_deactivated_{$this->item_id}", $license_key, $url_to_deactivate ); -
do_action( "barn2_license_refreshed_{$this->item_id}", $license_key, $url_to_refresh ); -
apply_filters( 'barn2_plugin_disable_license_key_check', \false, $this->license ); -
apply_filters( 'barn2_plugin_hide_license_notices', \false, $this->plugin ); -
apply_filters( "barn2_plugin_is_beta_testing_{$this->plugin->get_slug()}", \false ); -
apply_filters( 'barn2_plugin_license_key_setting', $setting, $this ); -
apply_filters_deprecated( 'barn2_plugins_title_links', [$links, $plugin], '1.1', 'barn2_plugin_settings_help_links' ); -
apply_filters( 'barn2_website_url', $url, $relative_path ); -
apply_filters( "shortcode_atts_{$shortcode}", $atts, [], [], $shortcode );
Generated from Easy Post Types and Fields's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: