Essential Content Types icon
Content & Editing

Essential Content Types hooks reference

  • By Catch Themes
  • v2.7 New
  • Updated

Essential Content Types 2.7 has 15 actions and 14 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 Essential Content Types fires an action
add_action( 'ect_after_featured_content_loop', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value Essential Content Types is about to use
add_filter( 'jetpack_enable_cpt', function( $value, $arg2 ) {
	// Change $value here.
	return $value;
}, 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

  • admin/class-portfolio.php line 182 · used in 2 places
    /**
     * This action is documented in modules/custom-post-types/nova.php
     */
    apply_filters( 'jetpack_enable_cpt', false, self::CUSTOM_POST_TYPE );
  • includes/CatchThemesThemePlugin.php line 438
    /**
     * Filters the theme data loaded in the customizer.
     */
    apply_filters( 'customize_load_themes', $themes, $args, $wp_customize );
  • admin/class-food-menu.php line 1510
    /**
     * Hook: ect_after_food_menu_loop.
     */
    do_action( 'ect_after_food_menu_loop' );
  • admin/class-portfolio.php line 756
    /**
     * Hook: ect_after_portfolio_loop.
     */
    do_action( 'ect_after_portfolio_loop' );
  • admin/class-service.php line 592
    /**
     * Hook: ect_after_service_loop.
     */
    do_action( 'ect_after_service_loop' );
  • admin/class-testimonial.php line 758
    /**
     * Hook: ect_after_testimonial_loop.
     */
    do_action( 'ect_after_testimonial_loop' );
  • admin/class-food-menu.php line 1517
    /**
     * Hook: ect_no_food_menu_found.
     */
    do_action( 'ect_no_food_menu_found' );
  • admin/class-portfolio.php line 763
    /**
     * Hook: ect_no_portfolio_found.
     */
    do_action( 'ect_no_portfolio_found' );
  • admin/class-service.php line 599
    /**
     * Hook: ect_no_service_found.
     */
    do_action( 'ect_no_service_found' );
  • admin/class-testimonial.php line 765
    /**
     * Hook: ect_no_testimonial_found.
     */
    do_action( 'ect_no_testimonial_found' );
  • admin/class-food-menu.php line 1384
    /**
     * Filter a menu Item Markup element's class attribute.
     */
    apply_filters( 'essential-content-types_ect_food_menu_item_loop_class', ' class="' . esc_attr($class) . '"', $class, $this->menu_item_loop_current_term );
  • admin/class-food-menu.php line 1352
    /**
     * Filter a menu item's element closing tag.
     */
    apply_filters( 'essential-content-types_ect_food_menu_item_loop_close_element', '</' . tag_escape($markup["{$field}_tag"]) . ">\n", $field, $markup, $this->menu_item_loop_current_term );
  • admin/class-food-menu.php line 1323
    /**
     * Filter a menu item's element opening tag.
     */
    apply_filters( 'essential-content-types_ect_food_menu_item_loop_open_element', '<' . tag_escape($markup["{$field}_tag"]) . $this->menu_item_loop_class($markup["{$field}_class"]) . ">\n", $field, $markup, $this->menu_item_loop_current_term );
  • includes/CatchThemesThemePlugin.php line 74
    /**
     * This filter is documented in
     * wp-admin/includes/class-wp-theme-install-list-table.php
     */
    apply_filters( "install_themes_table_api_args_{$old_filter}", $args );
  • admin/class-portfolio.php line 901
    /**
     * Change the Portfolio thumbnail size.
     */
    apply_filters( 'jetpack_portfolio_thumbnail_size', 'ect-jetpack-portfolio-featured' );
  • admin/class-service.php line 728
    /**
     * Change the Service thumbnail size.
     */
    apply_filters( 'service_thumbnail_size', $size );
  • admin/class-testimonial.php line 969
    /**
     * Change the Testimonial thumbnail size.
     */
    apply_filters( 'testimonial_thumbnail_size', $size );
  • the_content

    filter
    admin/class-testimonial.php line 814
    /**
     * This filter is already documented in core. wp-includes/post-template.php
     */
    apply_filters( 'the_content', $value );
  • ctp_options

    filter
    includes/ctp-tabs-removal.php line 48
    apply_filters( 'ctp_options', $default_options );
  • admin/class-food-menu.php line 1492
    do_action( 'ect_before_food_menu_loop' );
  • admin/class-portfolio.php line 733
    do_action( 'ect_before_portfolio_loop', $layout[$atts['columns']] );
  • admin/class-service.php line 570
    do_action( 'ect_before_service_loop', $layout[$atts['columns']] );
  • admin/class-testimonial.php line 741
    do_action( 'ect_before_testimonial_loop', $layout[$atts['columns']] );
  • essential-content-types.php line 183
    apply_filters( 'ect_get_template_part', $template, $slug, $name );
  • essential-content-types.php line 147
    apply_filters( 'ect_template_path', 'ect-templates/' );

Generated from Essential Content Types'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: