GutenKit icon
Page Builders & Blocks

GutenKit hooks reference

  • By Ataur R
  • v2.5.7 New
  • Updated

GutenKit 2.5.7 has 5 actions and 23 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 GutenKit fires an action
add_action( 'gutenkit/after_init', function() {
	// Your code runs here.
}, 10, 1 );

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

  • gutenkit-blocks-addon.php line 335
    /**
     * Fires after the initialization of the GutenKit plugin.
     */
    do_action( 'gutenkit/after_init' );
  • gutenkit-blocks-addon.php line 193
    /**
     * Fires before the initialization of the GutenKit plugin.
     */
    do_action( 'gutenkit/before_init' );
  • gutenkit/init

    action
    gutenkit-blocks-addon.php line 68
    /**
     * Fires while initialization of the GutenKit plugin.
     */
    do_action( 'gutenkit/init' );
  • includes/Admin/Api/SettingsData.php line 114
    /**
     * Fires after the cache of an API integration setting is cleared.
     */
    do_action( 'gutenkit/settings/clear_cache', $cache_key );
  • includes/Admin/Admin.php line 32 · used in 5 places
    apply_filters( 'active_plugins', get_option('active_plugins') );
  • includes/Libs/AssetGenerator.php line 477 · used in 2 places
    apply_filters( 'gutenkit/skip_theme_registered_fonts', false, $this->fonts );
  • scoped/packages/wpmet/utility-package/src/Emailkit/Emailkit.php line 20
    do_action( 'edit_with_emailkit_loaded' );
  • includes/Config/Modules.php line 297
    apply_filters( "gutenkit_{$package}_{$module}_assets", $module );
  • includes/Helpers/Utils.php line 290
    apply_filters( 'gutenkit_allowed_json_attrs_tags', $allowed_json_tags );
  • includes/Helpers/Utils.php line 143
    apply_filters( 'gutenkit_allowed_svg_attrs_tags', $allowed_svg_tags );
  • includes/Routes/MailChimp.php line 211
    apply_filters( 'gutenkit_mailchimp_submission_limit', 10 );
  • includes/Routes/MailChimp.php line 212
    apply_filters( 'gutenkit_mailchimp_submission_window', 10 * MINUTE_IN_SECONDS );
  • includes/Config/Blocks.php line 171
    apply_filters( 'gutenkit_save_element_markup', $block_content, $parsed_block, $instance );
  • includes/Config/Modules.php line 264
    apply_filters( "gutenkit-{$key}-{$type}-3rd-party-scripts", $settings["script_handles"], $key, $metadata );
  • includes/Config/Modules.php line 271
    apply_filters( "gutenkit-{$key}-{$type}-3rd-party-styles", $settings["style_handles"], $key, $metadata );
  • includes/Libs/AssetGenerator.php line 382
    apply_filters( 'gutenkit/collected_css', $parsed_block );
  • includes/Helpers/Utils.php line 1221
    apply_filters( 'gutenkit/css_meta_keys', array( 'postBodyCss', 'globalClassManagerStyle', ) );
  • includes/Routes/DeactivationFeedback.php line 124
    apply_filters( 'gutenkit/deactivation_feedback/user_type', 'free' );
  • includes/Helpers/Utils.php line 471
    apply_filters( 'gutenkit/dynamic_block_wrapper_attributes', array_merge($required_attrs, $extra_attrs), $block );
  • includes/Libs/AssetGenerator.php line 437
    apply_filters( 'gutenkit/generated_css', $this->css );
  • includes/Routes/MediaUploadFromUrl.php line 120
    apply_filters( 'gutenkit/media_upload_from_url/allowed_hosts', array( 'wpgutenkit.com', 'wpmet.com' ) );
  • includes/Config/PostMetaList.php line 28
    apply_filters( 'gutenkit/post-meta/list', self::$full_list );
  • includes/Config/Blocks.php line 170
    apply_filters( 'gutenkit/save_element_markup_after', "", $parsed_block );
  • includes/Config/Blocks.php line 169
    apply_filters( 'gutenkit/save_element_markup_before', "", $parsed_block );
  • includes/Config/SettingsList.php line 16
    apply_filters( 'gutenkit/settings/list', array( 'google_map' => array( 'slug' => 'google_map', 'title' => __( 'Google Map', 'gutenkit-blocks-addon' ), 'description' => __( "Integrate Google Maps services to enable location-based features into your website. Use the Google Map API.", 'gutenkit-blocks-addon' ), 'package' => 'pro', 'fields' => array( 'api_key' => array('label' => __( 'API key', 'gutenkit-blocks-addon' ), 'value' => ''), )... );
  • includes/Helpers/InstallTracker.php line 57
    apply_filters( 'wpmet_onboard_status_map', self::ONBOARD_STATUS_MAP );

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