wpDataTables 6.6.1.2 has 65 actions and 141 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.
// Run your own code when wpDataTables fires an action
add_action( 'mcp_adapter_init', function( $object ) {
// Your code runs here.
}, 10, 1 );
// Change a value wpDataTables is about to use
add_filter( 'mcp_adapter_validation_enabled', function( $value, $server_id, $object ) {
// Change $value here.
return $value;
}, 10, 3 );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 whether MCP protocol validation is enabled for a server. */ apply_filters( 'mcp_adapter_validation_enabled', false, $this->server_id, $this ); -
/** * Filters the list table Bulk Actions drop-down. */ apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions ); -
/** * Filters whether the default MCP server should be created. */ apply_filters( 'mcp_adapter_create_default_server', true ); -
/** * Filters the default MCP server configuration. */ apply_filters( 'mcp_adapter_default_server_config', $wordpress_defaults ); -
/** * Filters the default user capability required for MCP transport access. */ apply_filters( 'mcp_adapter_default_transport_permission_user_capability', 'read', $context ); -
/** * Filters the capability required to discover available abilities. */ apply_filters( 'mcp_adapter_discover_abilities_capability', 'read' ); -
/** * Filters whether the STDIO transport is enabled. */ apply_filters( 'mcp_adapter_enable_stdio_transport', true ); -
/** * Filters the capability required to execute abilities. */ apply_filters( 'mcp_adapter_execute_ability_capability', 'read' ); -
/** * Filters the capability required to get ability information. */ apply_filters( 'mcp_adapter_get_ability_info_capability', 'read' ); -
/** * Fires after the MCP Adapter has been initialized. */ do_action( 'mcp_adapter_init', $this ); -
/** * Filters the initialize response before returning to the client. */ apply_filters( 'mcp_adapter_initialize_response', $result, $this->mcp ); -
/** * Filters whether component registration events should be recorded for * observability. */ apply_filters( 'mcp_adapter_observability_record_component_registration', false, $this->mcp_server->get_server_id(), $this->mcp_server ); -
/** * Filters prompt arguments before execution, or short-circuits execution * entirely. */ apply_filters( 'mcp_adapter_pre_prompt_get', $arguments, $prompt_name, $mcp_prompt, $this->mcp ); -
/** * Filters resource parameters before execution, or short-circuits execution * entirely. */ apply_filters( 'mcp_adapter_pre_resource_read', $request_params, $uri, $mcp_resource, $this->mcp ); -
/** * Filters tool arguments before execution, or short-circuits execution * entirely. */ apply_filters( 'mcp_adapter_pre_tool_call', $args, $tool_name, $mcp_tool, $this->mcp ); -
/** * Filters the prompt execution result before normalization. */ apply_filters( 'mcp_adapter_prompt_get_result', $result, $arguments, $prompt_name, $mcp_prompt, $this->mcp ); -
/** * Filters the MCP prompt name derived from an ability. */ apply_filters( 'mcp_adapter_prompt_name', $sanitized_name, $this->ability ); -
/** * Filters the list of prompts before returning to the client. */ apply_filters( 'mcp_adapter_prompts_list', $prompts, $this->mcp ); -
/** * Filters the MCP resource name derived from an ability. */ apply_filters( 'mcp_adapter_resource_name', $name, $this->ability ); -
/** * Filters the resource contents after execution. */ apply_filters( 'mcp_adapter_resource_read_result', $contents, $request_params, $uri, $mcp_resource, $this->mcp ); -
/** * Filters the MCP resource URI derived from an ability. */ apply_filters( 'mcp_adapter_resource_uri', $uri, $this->ability ); -
/** * Filters the list of resources before returning to the client. */ apply_filters( 'mcp_adapter_resources_list', $resources, $this->mcp ); -
/** * Filters the minimum interval between session last_activity writes. */ apply_filters( 'mcp_adapter_session_activity_update_interval', self::DEFAULT_ACTIVITY_UPDATE_INTERVAL ); -
/** * Filters the session inactivity timeout in seconds. */ apply_filters( 'mcp_adapter_session_inactivity_timeout', self::DEFAULT_INACTIVITY_TIMEOUT ); -
/** * Filters the maximum number of MCP sessions allowed per user. */ apply_filters( 'mcp_adapter_session_max_per_user', self::DEFAULT_MAX_SESSIONS ); -
/** * Filters the tool execution result before response assembly. */ apply_filters( 'mcp_adapter_tool_call_result', $result, $args, $tool_name, $mcp_tool, $this->mcp ); -
/** * Filters the MCP tool name derived from an ability. */ apply_filters( 'mcp_adapter_tool_name', $sanitized_name, $this->ability ); -
/** * Filters the list of tools before returning to the client. */ apply_filters( 'mcp_adapter_tools_list', $tools, $this->mcp ); -
/** * Fires when preparing ability categories registry. */ do_action( 'wp_abilities_api_categories_init', self::$instance ); -
/** * Fires when preparing abilities registry. */ do_action( 'wp_abilities_api_init', self::$instance ); -
/** * Fires immediately after an ability finished executing. */ do_action( 'wp_after_execute_ability', $this->name, $input, $result ); -
/** * Fires before an ability gets executed, after input validation and * permissions check. */ do_action( 'wp_before_execute_ability', $this->name, $input ); -
/** * Fires after the main plugin class has been initialized. */ do_action( 'wp_mcp_init', self::$instance ); -
/** * Filters the ability arguments before they are validated and used to * instantiate the ability. */ apply_filters( 'wp_register_ability_args', $args, $name ); -
/** * Filters the ability category arguments before they are validated and used to * instantiate the ability category. */ apply_filters( 'wp_register_ability_category_args', $args, $slug ); -
/** * New filter introduced in version 1.6 */ apply_filters( 'wpdatatables_filter_template_file_location', WDT_TEMPLATE_PATH . $this->body ); -
/** * Filters the default preferred AI model IDs for wpDataTables generation. */ apply_filters( 'wpdatatables/ai/model_preference', $default ); -
/** * Filters the admin URL shown in wpDataTables AI setup UI. */ apply_filters( 'wpdatatables/ai/settings_url', $url, $reason ); -
do_action( 'wpdatatables_admin_before_settings' ); -
do_action( 'wpdatatables_after_save_table', $tableID ); -
apply_filters( 'wpdatatables_cell_filtered_data_rows_filter', $dataRows, $columnKey, $rowID, $columnID, $columnIDValue, $table_id ); -
apply_filters( 'wpdatatables_cell_value_filter', $cellValue, $columnKey, $rowID, $columnID, $columnIDValue, $table_id ); -
apply_filters( 'wpdatatables_filter_float_cell_data_in_charts', $row[$columnKey], $columnKey, $this->getId(), $this->_wpdatatable->getWpId() ); -
apply_filters( 'wpdatatables_filter_int_cell_data_in_charts', $row[$columnKey], $columnKey, $this->getId(), $this->_wpdatatable->getWpId() ); -
apply_filters( 'wpdt_filter_simple_table_cell_meta', $cellMetaClasses, $i, $j, $this->getTableID() ); -
apply_filters( 'abilities_api_register_core_abilities', false ); -
apply_filters( 'wdt_add_column', $dataColumn ); -
apply_filters( 'wdt_add_columns', $dataColumns ); -
do_action_deprecated( 'wdt_add_customize_table_configuration_tab', array(), WDT_INITIAL_LITE_VERSION, 'wpdatatables_add_customize_table_configuration_tab' ); -
do_action_deprecated( 'wdt_add_customize_table_configuration_tabpanel', array(), WDT_INITIAL_LITE_VERSION, 'wpdatatables_add_customize_table_configuration_tabpanel' ); -
do_action_deprecated( 'wdt_add_data_source_elements', array(), WDT_INITIAL_LITE_VERSION, 'wpdatatables_add_data_source_elements' ); -
do_action_deprecated( 'wdt_add_table_configuration_tab', array(), WDT_INITIAL_LITE_VERSION, 'wpdatatables_add_table_configuration_tab' ); -
do_action_deprecated( 'wdt_add_table_configuration_tabpanel', array(), WDT_INITIAL_LITE_VERSION, 'wpdatatables_add_table_configuration_tabpanel' ); -
do_action_deprecated( 'wdt_add_table_type_option', array(), WDT_INITIAL_LITE_VERSION, 'wpdatatables_add_table_type_option' ); -
do_action_deprecated( 'wdt_enqueue_on_dashboard_page', array(), WDT_INITIAL_LITE_VERSION, 'wpdatatables_enqueue_on_dashboard_page' ); -
do_action_deprecated( 'wdt_enqueue_on_edit_page', array(), WDT_INITIAL_LITE_VERSION, 'wpdatatables_enqueue_on_edit_page' ); -
apply_filters( 'wdt_get_row', $rowArray ); -
do_action_deprecated( 'wdt-enqueue-scripts-after-chart-render', array(), WDT_INITIAL_LITE_VERSION, 'wpdatatables_enqueue_scripts_after_chart_render' ); -
apply_filters( 'wdtmcp_custom_css_max_length', 100000 ); -
apply_filters( 'wdtmcp_sanitize_custom_css', $css ); -
apply_filters( 'wpdatatable_cell_filter_formatted_cell', $cellDataFormatted, $cellClasses, $cellData, $rowID, $columnKey, $tableID ); -
apply_filters( 'wpdatatable_cell_include_formatting', true, $columnKey, $rowID, $tableID ); -
do_action( 'wpdatatables_add_activation' ); -
do_action( 'wpdatatables_add_customize_table_configuration_tab' ); -
do_action( 'wpdatatables_add_customize_table_configuration_tabpanel' ); -
do_action( 'wpdatatables_add_data_source_elements' ); -
do_action( 'wpdatatables_add_table_configuration_tab' ); -
do_action( 'wpdatatables_add_table_configuration_tabpanel' ); -
do_action( 'wpdatatables_add_table_type_option' ); -
do_action( 'wpdatatables_admin_before_addons' ); -
do_action( 'wpdatatables_admin_before_constructor' ); -
do_action( 'wpdatatables_admin_before_dashboard' ); -
do_action( 'wpdatatables_admin_before_edit' ); -
do_action( 'wpdatatables_admin_before_edit_simple_table' ); -
do_action( 'wpdatatables_after_delete_charts', (int)$chartId, 'chart' ); -
do_action( 'wpdatatables_after_header', $this->getWpId() ); -
do_action( 'wpdatatables_after_insert_column', $columnConfig, $columnConfig['table_id'] ); -
do_action( 'wpdatatables_after_last_row', $this->getWpId() ); -
do_action( 'wpdatatables_after_row', $this->getWpId(), $wdtRowIndex ); -
do_action( 'wpdatatables_after_save_columns' ); -
do_action( 'wpdatatables_after_save_row' ); -
do_action( 'wpdatatables_after_save_settings' ); -
do_action( 'wpdatatables_after_table', $this->getWpId() ); -
apply_filters( 'wpdatatables_allow_edit_table', $userCanEdit, $editorRoles, $id ); -
do_action( 'wpdatatables_before_create_columns', $table, $tableId, $frontendColumns ); -
do_action( 'wpdatatables_before_create_row', $tableID, $rowData ); -
apply_filters( 'wpdatatables_before_create_simple_table', json_decode( stripslashes_deep( $_POST['tableData'] ) ) ); -
do_action( 'wpdatatables_before_first_row', $this->getWpId() ); -
do_action( 'wpdatatables_before_get_columns_metadata', $tableId ); -
apply_filters( 'wpdatatables_before_get_excel_headers', $objWorksheet, $this->getWpId(), $xls_url ); -
do_action( 'wpdatatables_before_get_rows_metadata', $tableID ); -
do_action( 'wpdatatables_before_get_table_metadata', $tableId ); -
do_action( 'wpdatatables_before_header', $this->getWpId() ); -
do_action( 'wpdatatables_before_render_chart', $wpDataChart->getId() ); -
do_action( 'wpdatatables_before_render_table', $id ); -
do_action( 'wpdatatables_before_render_table_config_data', $id ); -
do_action( 'wpdatatables_before_row', $this->getWpId(), $wdtRowIndex ); -
apply_filters( 'wpdatatables_before_save_settings', $_POST['settings'] ); -
apply_filters( 'wpdatatables_before_save_table', json_decode( stripslashes_deep($_POST['table']) ) ); -
do_action( 'wpdatatables_before_table', $this->getWpId() ); -
do_action( 'wpdatatables_browse_page' ); -
apply_filters( 'wpdatatables_cell_data_rows_filter', $dataRows, $columnKey, $rowID, $columnID, $columnIDValue, $table_id ); -
apply_filters( 'wpdatatables_cell_filter_column_id', $columnID, $columnKey, $rowID, $columnIDValue, $table_id ); -
apply_filters( 'wpdatatables_cell_filter_column_id_value', $columnIDValue, $columnKey, $rowID, $columnID, $table_id ); -
apply_filters( 'wpdatatables_cell_filter_column_key', $columnKey, $rowID, $columnID, $columnIDValue, $table_id ); -
apply_filters( 'wpdatatables_cell_filter_row_id', $rowID, $columnKey, $columnID, $columnIDValue, $table_id ); -
apply_filters( 'wpdatatables_cell_output_filter', $cellValueOutput, $cellValue, $columnKey, $rowID, $columnID, $columnIDValue, $table_id ); -
do_action( 'wpdatatables_chart_wizard_ai_suggester' ); -
apply_filters( 'wpdatatables_curl_get_data', null, $ch, $url ); -
apply_filters( 'wpdatatables_curl_get_data_complete', $data, $url ); -
do_action( 'wpdatatables_dashboard_page' ); -
do_action( 'wpdatatables_enqueue_on_admin_pages' ); -
do_action( 'wpdatatables_enqueue_on_dashboard_page' ); -
do_action( 'wpdatatables_enqueue_on_edit_page' ); -
do_action( 'wpdatatables_enqueue_scripts_after_chart_render' ); -
apply_filters( 'wpdatatables_excel_filter_cell_val', $cellContent ); -
apply_filters( 'wpdatatables_excel_filter_column_js_definition', $colJsDefinition, $this->wdtColumn->getTitle() ); -
apply_filters( 'wpdatatables_extend_column_js_definition', $colJsDefinition, $this ); -
apply_filters( 'wpdatatables_filter_addons_page', $addonsPage ); -
apply_filters( 'wpdatatables_filter_browse_charts', $wpdb->get_results($query, ARRAY_A) ); -
apply_filters( 'wpdatatables_filter_browse_page', $browseTablesPage ); -
apply_filters( 'wpdatatables_filter_browse_tables', $allTables ); -
apply_filters( 'wpdatatables_filter_cell_output', $this->returnCellValue($wdtRowDataArr[$dataColumnHeader], $dataColumnHeader), $this->getWpId(), $dataColumnHeader ); -
apply_filters( 'wpdatatables_filter_cell_val', $cellValue, $this->getParentTable()->getWpId() ); -
apply_filters( 'wpdatatables_filter_chart_wizard_page', $chartWizardPage ); -
apply_filters( 'wpdatatables_filter_chartjs_render_data', $this->_chartjs_render_data, $this->getId(), $this ); -
apply_filters( 'wpdatatables_filter_charts_table_page', $browseChartsPage ); -
apply_filters( 'wpdatatables_filter_column_before_save', $columnConfig, $tableId ); -
apply_filters( 'wpdatatables_filter_column_cssClassArray', $classesStr, $this->_title ); -
apply_filters( 'wpdatatables_filter_column_js_definition', $colJsDefinition, $this->_title ); -
apply_filters( 'wpdatatables_filter_column_metadata', $column, $columnId ); -
apply_filters( 'wpdatatables_filter_columns_metadata', $columns, $tableId ); -
apply_filters( 'wpdatatables_filter_constructor_page', $constructorPage ); -
apply_filters( 'wpdatatables_filter_dashboard_page', $dashboardPage ); -
apply_filters( 'wpdatatables_filter_date_cell', $formattedValue, $this->getParentTable()->getWpId() ); -
apply_filters( 'wpdatatables_filter_date_cell_before_formatting', $content, $this->getParentTable()->getWpId() ); -
apply_filters( 'wpdatatables_filter_datetime_cell', $formattedValue, $this->getParentTable()->getWpId() ); -
apply_filters( 'wpdatatables_filter_datetime_cell_before_formatting', $content, $this->getParentTable()->getWpId() ); -
apply_filters( 'wpdatatables_filter_edit_page', $editPage ); -
apply_filters( 'wpdatatables_filter_edit_page_simple_table', $editPage ); -
apply_filters( 'wpdatatables_filter_elementor_chart_shortcode', $chartShortcodeParams ); -
apply_filters( 'wpdatatables_filter_elementor_table_shortcode', $tableShortcodeParams ); -
apply_filters( 'wpdatatables_filter_email_cell', $formattedValue, $this->getParentTable()->getWpId() ); -
apply_filters( 'wpdatatables_filter_email_cell_before_formatting', $content, $this->getParentTable()->getWpId() ); -
apply_filters( 'wpdatatables_filter_excel_array', $namedDataArray, $this->getWpId(), $xls_url ); -
apply_filters( 'wpdatatables_filter_excel_based_data_url', $xls_url, $this->getWpId() ); -
apply_filters( 'wpdatatables_filter_float_cell', $formattedValue, $this->getParentTable()->getWpId() ); -
apply_filters( 'wpdatatables_filter_float_cell_before_formatting', $content, $this->getParentTable()->getWpId() ); -
apply_filters( 'wpdatatables_filter_getting_started_page', $settingsPage ); -
apply_filters( 'wpdatatables_filter_google_charts_render_data', $this->_render_data, $this->getId(), $this ); -
apply_filters( 'wpdatatables_filter_image_cell', $formattedValue, $this->getParentTable()->getWpId() ); -
apply_filters( 'wpdatatables_filter_image_cell_before_formatting', $content, $this->getParentTable()->getWpId() ); -
apply_filters( 'wpdatatables_filter_initial_table_construct', $wpDataTable ); -
apply_filters( 'wpdatatables_filter_insert_column_array', $columnConfig, $columnConfig['table_id'] ); -
apply_filters( 'wpdatatables_filter_insert_table_array', $tableConfig ); -
apply_filters( 'wpdatatables_filter_int_cell', $content, $this->getParentTable()->getWpId() ); -
apply_filters( 'wpdatatables_filter_int_cell_before_formatting', $content, $this->getParentTable()->getWpId() ); -
apply_filters( 'wpdatatables_filter_json', $json, $id ); -
apply_filters( 'wpdatatables_filter_json_array', $jsonArray, $this->getWpId(), $json ); -
apply_filters( 'wpdatatables_filter_link_cell', $formattedValue, $this->getParentTable()->getWpId() ); -
apply_filters( 'wpdatatables_filter_link_cell_before_formatting', $content, $this->getParentTable()->getWpId() ); -
apply_filters( 'wpdatatables_filter_mysql_query', $data_sql, $table_id ); -
apply_filters( 'wpdatatables_filter_nested_json_array', $jsonArray, $this->getWpId(), $jsonParams ); -
apply_filters( 'wpdatatables_filter_nested_json_endpoint_args', $endPointArgs, $this->getAllArgs(), $tableID ); -
apply_filters( 'wpdatatables_filter_nested_json_final_array', $data, $filteredDataByChosenRoot, $tableID ); -
apply_filters( 'wpdatatables_filter_nested_json_rows_by_root_path', $rows, $this->getRoot(), $response ); -
apply_filters( 'wpdatatables_filter_php_array', $PHPArray, $this->getWpId(), $url ); -
apply_filters( 'wpdatatables_filter_query_before_limit', $base_query, $table_id ); -
apply_filters( 'wpdatatables_filter_rendered_table', $output, $id ); -
apply_filters( 'wpdatatables_filter_rows_metadata', $rows, $tableID ); -
apply_filters( 'wpdatatables_filter_serialized', WDTTools::curlGetData($url), $id ); -
apply_filters( 'wpdatatables_filter_settings_page', $settingsPage ); -
apply_filters( 'wpdatatables_filter_simplexml', $XMLObject, $id ); -
apply_filters( 'wpdatatables_filter_source_data_on_auto_update_cache', true, $tableID ); -
apply_filters( 'wpdatatables_filter_string_cell', $content, $this->getParentTable()->getWpId() ); -
apply_filters( 'wpdatatables_filter_string_cell_before_formatting', $content, $this->getParentTable()->getWpId() ); -
apply_filters( 'wpdatatables_filter_style_block', $styleBlockHtml, $wpDataTable->id ); -
apply_filters( 'wpdatatables_filter_support_page', $settingsPage ); -
apply_filters( 'wpdatatables_filter_system_info_page', $settingsPage ); -
apply_filters( 'wpdatatables_filter_table_cssClassArray', $classesStr, $this->getWpId() ); -
apply_filters( 'wpdatatables_filter_table_description', $obj, $this->getWpId(), $this ); -
apply_filters( 'wpdatatables_filter_table_description_text', (empty($tableData->table_description) ? '' : '<p class="wpdt-c" id="wdt-table-description-' . $id . '">' . $tableData->table_description . '</p>'), $id ); -
apply_filters( 'wpdatatables_filter_table_metadata', self::$_tableConfigCache[$tableId], $tableId ); -
apply_filters( 'wpdatatables_filter_table_title', (empty($tableData->title) ? '' : '<h3 class="wpdt-c" id="wdt-table-title-' . $id . '">' . $tableData->title . '</h3>'), $id ); -
apply_filters( 'wpdatatables_filter_time_cell', $formattedValue, $this->getParentTable()->getWpId() ); -
apply_filters( 'wpdatatables_filter_time_cell_before_formatting', $content, $this->getParentTable()->getWpId() ); -
apply_filters( 'wpdatatables_filter_update_column_array', $columnConfig, $columnConfig['table_id'] ); -
apply_filters( 'wpdatatables_filter_url_php_array', $url, $id ); -
apply_filters( 'wpdatatables_filter_welcome_page', $welcomePage ); -
apply_filters( 'wpdatatables_filter_xml_array', $XMLArray, $this->getWpId(), $xml ); -
do_action( "wpdatatables_generate_{$tableData->table_type}", $this, $tableData->content, $wdtParameters ); -
apply_filters( 'wpdatatables_get_one_level_deep_json_data_from_array_as_string', false, $this->getUrl(), $tableID ); -
apply_filters( 'wpdatatables_get_system_fonts', $systemFonts ); -
do_action( 'wpdatatables_getting_started_page' ); -
apply_filters( 'wpdatatables_ivyforms_tabpanel', ob_get_contents() ); -
apply_filters( 'wpdatatables_set_one_level_deep_json_data_separator', '<br>', $this->getUrl(), $tableID ); -
do_action( 'wpdatatables_settings_page' ); -
do_action( 'wpdatatables_support_page' ); -
do_action( 'wpdatatables_system_info_page' ); -
do_action( 'wpdatatables_try_generate_table', $type, $content ); -
apply_filters( 'wpdatatables_try_generate_table_result', $result ); -
do_action( 'wpdatatables_welcome_page' ); -
apply_filters( 'wpdatatables/rest/ai_capability', null ); -
apply_filters( 'wpdt_filter_simple_table_cell_data', $cellData, $this->getTableID() );
Generated from wpDataTables'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: