FlexTable 3.27.0 has 3 actions and 50 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.
// Run your own code when FlexTable fires an action
add_action( 'gswpts_ai_api_usage', function( $arg1, $usage_data ) {
// Your code runs here.
}, 10, 2 );
// Change a value FlexTable is about to use
add_filter( 'flextable_mcp_ability_classes', function( $core ) {
// Change $core here.
return $core;
}, 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
-
/** * Filters the FlexTable MCP ability classes. */ apply_filters( 'flextable_mcp_ability_classes', $core ); -
/** * Filters the input schema of a FlexTable MCP tool. */ apply_filters( 'flextable_mcp_ability_input_schema', $schema, $this->name() ); -
/** * Filters the AI manager used to generate table summaries. */ apply_filters( 'flextable_mcp_ai_manager', isset( gswpts()->ai ) ? gswpts()->ai : null ); -
/** * Filters per-table theme overrides for flextable/apply-theme. */ apply_filters( 'flextable_mcp_apply_theme_overrides', [ 'overrides' => [], 'warnings' => [], ], $input, $theme ); -
/** * Filters the built-in table styles MCP can apply. */ apply_filters( 'flextable_mcp_builtin_themes', $builtins ); -
/** * Lets extensions refuse to delete a table that they still use. */ apply_filters( 'flextable_mcp_can_delete_table', true, $table ); -
/** * Filters the flextable/describe-settings result. */ apply_filters( 'flextable_mcp_describe_settings', $result, $input ); -
/** * Filters the items that can be placed on pages and posts. */ apply_filters( 'flextable_mcp_embed_kinds', $kinds ); -
/** * Filters the plugins that extend FlexTable MCP. */ apply_filters( 'flextable_mcp_extensions', [] ); -
/** * Filters whether a stored hide rule applies to the data MCP returns. */ apply_filters( 'flextable_mcp_hide_rule_active', true, $flag, $settings ); -
/** * Filters the themes listed by flextable/list-themes. */ apply_filters( 'flextable_mcp_list_themes', $themes, $wanted, $tables ); -
/** * Version fingerprint of an object type added by an extension (e.g. * tab_group). */ apply_filters( 'flextable_mcp_object_version', null, $type, $id ); -
/** * Resolves a theme that is not a built-in style (e.g. a Pro custom theme). */ apply_filters( 'flextable_mcp_resolve_theme', null, $name ); -
/** * Restores a snapshot of an object type added by an extension (FlexTable Pro * restores tab groups). */ apply_filters( 'flextable_mcp_restore_snapshot', null, $snapshot ); -
/** * Lets extensions fix setting combinations their dashboard also corrects. */ apply_filters( 'flextable_mcp_settings_auto_correct', [ 'settings' => $settings, 'warnings' => [], ], $table ); -
/** * Filters the table settings MCP can read and change. */ apply_filters( 'flextable_mcp_settings_definitions', $definitions ); -
/** * Filters the stored settings MCP must not change through update-table. */ apply_filters( 'flextable_mcp_settings_read_only', $read_only ); -
/** * Filters the flextable/get-table result. */ apply_filters( 'flextable_mcp_table_details', $result, $table ); -
/** * Filters the allowed HTML tags and attributes for FlexTable's shortcode * output. */ apply_filters( 'gswpts_shortcode_allowed_html', $allowed_html ); -
/** * Filters the install action links for a plugin. */ apply_filters( 'plugin_install_action_links', $action_links, $plugin ); -
apply_filters( 'https_local_ssl_verify', false ); -
apply_filters( 'export_buttons_logo_backend', false ); -
apply_filters( 'export_buttons_logo_frontend', false ); -
apply_filters( 'flextable_mcp_allowed_origins', $allowed ); -
apply_filters( 'flextable_mcp_instructions', $text ); -
apply_filters( 'flextable_mcp_rate_limits', [ 'calls' => [ 120, MINUTE_IN_SECONDS ], 'writes' => [ 30, MINUTE_IN_SECONDS ], 'sheet_fetch' => [ 20, MINUTE_IN_SECONDS ], 'ai_generate' => [ 10, HOUR_IN_SECONDS ], ] ); -
apply_filters( 'flextable_mcp_required_capability', 'manage_options' ); -
do_action( 'gswpts_ai_api_usage', $this->get_provider_name(), $usage_data ); -
apply_filters( 'gswpts_ai_cache_max_prompts', 10, $table_id ); -
apply_filters( 'gswpts_ai_providers', $this->providers ); -
apply_filters( 'gswpts_cache_expiration', $this->get_data_cache_ttl() ); -
apply_filters( 'gswpts_cell_format', $cell_formats ); -
apply_filters( 'gswpts_display_settings_arr', $settings_array ); -
do_action( 'gswpts_export_dependency_backend' ); -
do_action( 'gswpts_export_dependency_frontend' ); -
apply_filters( 'gswpts_export_url', $gid ); -
apply_filters( 'gswpts_feature_chunk_size', $chunk ); -
apply_filters( 'gswpts_link_support', $link_support ); -
apply_filters( 'gswpts_redirection_types', $redirection_types ); -
apply_filters( 'gswpts_responsive_styles', $responsive_styles ); -
apply_filters( 'gswpts_rows_per_page', $rows_per_page ); -
apply_filters( 'gswpts_server_side_pagination_enabled', $enabled, $table_id ); -
apply_filters( 'gswpts_sortfilter_settings_arr', $settings_array ); -
apply_filters( 'gswpts_table_export_values', $export_values ); -
apply_filters( 'gswpts_table_scorll_height', $scroll_heights ); -
apply_filters( 'gswpts_table_settings', $settings, $table_settings ); -
apply_filters( 'gswpts_table_styles', $styles_array ); -
apply_filters( 'gswpts_table_styles_path', $styles_array ); -
apply_filters( 'gswpts_table_tools_settings_arr', $settings_array ); -
apply_filters( 'wppool_inline_styles', $css ); -
apply_filters( 'wppool_plugins', $this->plugins ); -
apply_filters( 'wppool_popup_image', ( file_exists( __DIR__ . '/background-image.png' ) ? plugin_dir_url( __FILE__ ) . '/background-image.png' : '' ), $this->plugin_id ); -
apply_filters( 'wppool_tags', array_merge( $this->tags, $this->custom_tags ) );
Generated from FlexTable'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.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin 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 thisNot 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: