TableKit icon
Content & Editing

TableKit hooks reference

  • By Roxnor
  • v2.4.2 New
  • Updated

TableKit 2.4.2 has 2 actions and 18 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.

functions.phpyour child theme
// Run your own code when TableKit fires an action
add_action( 'tablebuilder/before_init', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value TableKit is about to use
add_filter( 'tablekit/block_names', 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/Shortcode/Shortcode.php line 479 · used in 2 places
    /**
     * Filters the block names treated as "table blocks" by the [tableKit]
     * shortcode, letting the Pro add-on (or third parties) register additional
     * table block types.
     */
    apply_filters( 'tablekit/block_names', array( 'tablebuilder/table-builder' ) );
  • includes/Helpers/Utils.php line 284
    /**
     * Filters the allowed JSON Schema/Lottie attribute keys used when sanitizing
     * block output.
     */
    apply_filters( 'table_builder_allowed_json_attrs_tags', $allowed_json_tags );
  • includes/Helpers/Utils.php line 154
    /**
     * Filters the allowed SVG tags and attributes used when sanitizing block
     * output.
     */
    apply_filters( 'table_builder_allowed_svg_attrs_tags', $allowed_svg_tags );
  • includes/Config/Blocks.php line 230
    /**
     * Filters the WP_HTML_Tag_Processor instance for a table block's saved element
     * markup, letting callbacks make further attribute/class changes before it's
     * serialized.
     */
    apply_filters( 'tablebuilder_save_element_markup', $block_processor, $parsed_block, $instance );
  • table-builder-block.php line 149
    /**
     * Fires right before TableKit's core classes are instantiated, on
     * "plugins_loaded".
     */
    do_action( 'tablebuilder/before_init' );
  • includes/Config/BlockList.php line 33
    /**
     * Filters the list of block definitions TableKit registers.
     */
    apply_filters( 'tablebuilder/blocks/list', array( 'table-builder' => array( 'slug' => 'table-builder', 'title' => 'Table Builder', 'package' => 'free', 'category' => 'general', 'status' => 'active', 'badge' => array( 'freemium', 'new', 'beta' ), ), 'table-builder-row' => array( 'slug' => 'table-builder-row', 'title' => 'Table Row', 'package' => 'free', 'category' => 'general', 'parent' => 'table-builder', 'status' => 'active', ), 'table... );
  • includes/Helpers/Utils.php line 474
    /**
     * Filters a dynamic block's wrapper attributes before they're rendered.
     */
    apply_filters( 'tablebuilder/dynamic_block_wrapper_attributes', array_merge( $required_attrs, $extra_attrs ), $block );
  • includes/Config/Blocks.php line 218
    /**
     * Filters markup appended to a table block's saved element, after rendering.
     */
    apply_filters( 'tablebuilder/save_element_markup_after', '', $parsed_block );
  • includes/Config/Blocks.php line 207
    /**
     * Filters markup prepended to a table block's saved element, before rendering.
     */
    apply_filters( 'tablebuilder/save_element_markup_before', '', $parsed_block );
  • includes/Routes/DeactivationFeedback.php line 156
    /**
     * Filters the user type sent with the deactivation feedback.
     */
    apply_filters( 'tablekit_deactivation_feedback_user_type', 'free' );
  • includes/Hooks/AssetGenerator.php line 914
    /**
     * Frontend backward-compat: some (child) themes never enqueue their own
     * style.css and may have relied on TableKit loading it. It is enqueued here
     * (same position as before) and dequeued again in
     * maybe_dequeue_theme_stylesheet_fallback() when the theme loads it itself, so
     * it is never printed twice.
     */
    apply_filters( 'tablekit_load_theme_stylesheet_fallback', true );
  • includes/Config/CPT/InlineTableScanner.php line 151
    /**
     * Filters the post types scanned for inline table blocks.
     */
    apply_filters( 'tablekit_scannable_post_types', array_values( $post_types ) );
  • includes/Shortcode/Shortcode.php line 197
    /**
     * Filters the rendered output for a single [tableKit] block, letting the Pro
     * add-on (or third parties) render block types this plugin doesn't know about.
     */
    apply_filters( 'tablekit/render_block', null, $block, $atts, $ids, $content );
  • includes/Shortcode/Shortcode.php line 88
    /**
     * Lets an add-on print its own output for this shortcode before any asset or
     * block work. Return null to keep the default rendering.
     */
    apply_filters( 'tablekit/shortcode_pre_render', null, is_array( $raw_atts ) ? $raw_atts : array(), $content );
  • includes/Shortcode/Shortcode.php line 215
    /**
     * Filters the table HTML rendered by the [tableKit] shortcode.
     */
    apply_filters( 'tablekit/table_html', $html, $attrs );
  • includes/Core/DataMigration.php line 39 · used in 4 places
    apply_filters( 'active_plugins', get_option( 'active_plugins' ) );
  • scoped/deps/wpmet/utility-package/src/Emailkit/Emailkit.php line 20
    do_action( 'edit_with_emailkit_loaded' );
  • includes/Shortcode/Shortcode.php line 160
    apply_filters( 'the_content', $post->post_content );

Generated from TableKit'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.

Plugin 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 this

Not 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: