EleSpare icon
Page Builders & Blocks

EleSpare hooks reference

  • By Elespare
  • v4.2.3 New
  • Updated

EleSpare 4.2.3 has 23 actions and 4 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 EleSpare fires an action
add_action( 'chromenews_action_get_breadcrumb', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value EleSpare is about to use
add_filter( 'elespare_header_data', function( $header_data ) {
	// Change $header_data here.
	return $header_data;
}, 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

  • inc/admin/templatespare-demo.php line 196
    /**
     * Allow other code to modify the header data.
     */
    apply_filters( 'elespare_header_data', $header_data );
  • the_date

    filter
    src/widgets/main-banner-1/widget.php line 4818 · used in 8 places
    apply_filters( 'the_date', get_the_date(), get_option('date_format'), '', '' );
  • header-footer/templates/compat/chromenews.php line 21 · used in 2 places
    do_action( 'chromenews_action_get_breadcrumb' );
  • src/widgets/search-form/widget.php line 460 · used in 2 places
    do_action( 'elespare_hf_seach_form', $button_icon, $placeholder, $button_text );
  • header-footer/templates/compat/reviewnews.php line 24 · used in 2 places
    do_action( 'reviewnews_action_get_breadcrumb' );
  • the_excerpt

    filter
    inc/functions.php line 837 · used in 2 places
    apply_filters( 'the_excerpt', get_post_field( 'post_excerpt', $post_id, 'display' ) );
  • header-footer/templates/compat/covernews.php line 17
    do_action( 'covernews_action_get_breadcrumb' );
  • header-footer/templates/compat/darknews.php line 18
    do_action( 'darknews_action_get_breadcrumb' );
  • inc/admin/notice-upgrade.php line 48
    apply_filters( "elespare_{$this->name}_notice_dismiss", $permanent_dismissed || $temporary_dismissed );
  • header-footer/templates/compat/elespare.php line 27
    do_action( 'elespare_action_get_breadcrumb' );
  • freemius.php line 34
    do_action( 'elespare_fs_loaded' );
  • header-footer/templates/default/header.php line 28
    do_action( 'elespare_hf_get_header' );
  • header-footer/templates/default/header.php line 29
    do_action( 'elespare_hf_get_header_wrapper' );
  • header-footer/templates/default/header.php line 23
    do_action( 'elespare_hf_header' );
  • header-footer/templates/compat/enternews.php line 14
    do_action( 'enternews_action_get_breadcrumb' );
  • header-footer/templates/compat/morenews.php line 20
    do_action( 'morenews_action_get_breadcrumb' );
  • header-footer/templates/compat/morenews.php line 30
    do_action( 'morenews_action_single_header' );
  • header-footer/templates/compat/newsever.php line 26
    do_action( 'newsever_action_get_breadcrumb' );
  • header-footer/templates/compat/newsever.php line 20
    do_action( 'newsever_action_single_header' );
  • header-footer/templates/compat/newsium.php line 26
    do_action( 'newsium_action_get_breadcrumb' );
  • header-footer/templates/compat/newsium.php line 22
    do_action( 'newsium_action_single_header' );
  • header-footer/templates/compat/newsphere.php line 24
    do_action( 'newsphere_action_get_breadcrumb' );
  • header-footer/templates/compat/newsphere.php line 20
    do_action( 'newsphere_action_single_header' );
  • wp_body_open

    action
    header-footer/templates/compat/elespare.php line 5
    do_action( 'wp_body_open' );

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