EMC icon
Events & Booking

EMC hooks reference

  • By Simpma
  • v6.0 New
  • Updated

EMC 6.0 has 1 actions and 16 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 EMC fires an action
add_action( 'emcs_before_calendar_embed', function( $url ) {
	// Your code runs here.
}, 10, 1 );

// Change a value EMC is about to use
add_filter( 'emcs_promotions', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

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

  • includes/promotions.php line 16 · used in 2 places
    apply_filters( 'emcs_promotions', true );
  • includes/availability/shortcode.php line 42
    apply_filters( 'emcs_availability_prefix', '', $atts, $availability );
  • includes/embed.php line 56
    do_action( 'emcs_before_calendar_embed', $this->url );
  • includes/embed.php line 41
    apply_filters( 'emcs_embed_final_url', $this->url, $atts );
  • includes/embed.php line 170
    apply_filters( 'emcs_inline_button_widget_html', $html, $atts );
  • includes/embed.php line 166
    apply_filters( 'emcs_inline_button_widget_style', $style, $atts );
  • includes/embed.php line 167
    apply_filters( 'emcs_inline_button_widget_text', $atts['text'], $atts );
  • includes/embed.php line 134
    apply_filters( 'emcs_inline_widget_html', $html, $atts );
  • includes/embed.php line 130
    apply_filters( 'emcs_inline_widget_style', $style, $atts );
  • includes/embed.php line 161
    apply_filters( 'emcs_large_inline_button', '20px' );
  • includes/embed.php line 157
    apply_filters( 'emcs_medium_inline_button', '15px' );
  • includes/embed.php line 194
    apply_filters( 'emcs_popup_button_widget_css', '', $atts );
  • includes/embed.php line 214
    apply_filters( 'emcs_popup_button_widget_html', $html, $atts );
  • includes/embed.php line 144
    apply_filters( 'emcs_popup_text_widget_html', $html, $atts );
  • includes/embed.php line 140
    apply_filters( 'emcs_popup_text_widget_style', $style, $atts );
  • includes/embed.php line 141
    apply_filters( 'emcs_popup_text_widget_text', $atts['text'], $atts );
  • includes/embed.php line 153
    apply_filters( 'emcs_small_inline_button', '10px' );

Generated from EMC'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: