Skip to main content

Filters

Filters are WordPress hooks that allow you to modify data before it's used by WPBakery Page Builder. Use add_filter() to hook into them:

add_filter('filter_name', 'your_custom_function', 10, 2);

function your_custom_function($value, $additional_params) {
// Modify $value as needed
return $value;
}

All Filters

FilterDescription
vc-tta-get-params-tabs-listFilters the TTA (Tabs, Tours, Accordions) tabs list HTML output before it is returned.
vc-ui-pointersFilters the list of UI pointers (admin help tooltips) registered for the current screen.
vc_add_element_box_buttonsFilters the rendered HTML output of the add element box buttons.
vc_add_element_categoriesFilters the tab categories displayed in the "Add Element" panel.
vc_add_new_elements_to_boxFilters the list of mapped shortcodes displayed in the "Add Element" box.
vc_animation_style_render_filterFilters the rendered output of the animation style parameter field.
vc_autocomplete_{tag}_{param_name}_callbackProvides autocomplete suggestions for a specific shortcode parameter via AJAX.
vc_autocomplete_render_filterFilters the rendered output of the autocomplete parameter field.
vc_autoload_components_listFilters the list of components that are autoloaded during WPBakery initialization.
vc_autoload_components_manifest_fileFilters the file path to the autoload components manifest file.
vc_base_build_shortcodes_{type}_cssFilters the parsed shortcode CSS for a specific type before it is saved as post meta.
vc_base_save_post_{meta_name}Filters the post meta value before it is saved during post update.
vc_basic_grid_filter_query_filtersFilters the custom query string used in the Post Grid element when the post type is set to "custom".
vc_basic_grid_filter_query_suppress_filtersFilters the suppress_filters parameter used in the Post Grid WP_Query.
vc_basic_grid_find_post_shortcodeFilters the shortcode data found by ID in a specific post.
vc_basic_grid_items_per_page_all_max_itemsFilters the maximum number of items per page when the grid pagination is set to display all items.
vc_basic_grid_max_itemsFilters the maximum number of items that can be displayed in the Post Grid element.
vc_basic_grid_template_filterFilters the rendered HTML output of the grid filter (taxonomy filter) template before it is appended to the grid output.
vc_before_update_post_dataFilters the post data object before WPBakery Page Builder updates the post with its own data.
vc_btn_a_hrefFilters the URL (href attribute) of the Button element before it is rendered.
vc_btn_a_titleFilters the title attribute of the Button element anchor tag before it is rendered.
vc_check_post_type_validationFilters the post type validation result when checking if WPBakery Page Builder should be enabled for a specific post type.
vc_clear_shortcode_suffixFilters the shortcode tag name used during Frontend Editor rendering.
vc_css_editorFilters the complete HTML output of the CSS Editor (Design Options) parameter field.
vc_css_editor_background_image_controlFilters the HTML output of the background image control in the CSS Editor (Design Options).
vc_css_editor_background_style_options_dataFilters the available background style options in the CSS Editor (Design Options).
vc_css_editor_border_radius_options_dataFilters the available border radius options in the CSS Editor (Design Options).
vc_css_editor_border_style_options_dataFilters the available border style options in the CSS Editor (Design Options).
vc_css_editor_layer_controlsFilters the HTML output of a specific layer's input controls in the CSS Editor (Design Options) onion layout.
vc_css_editor_onion_layoutFilters the HTML output of the onion layout (box model diagram) in the CSS Editor (Design Options).
vc_custom_code_categoriesFilters the list of tab categories displayed in the Custom Code popup panel.
vc_custom_code_templatesFilters the list of tab templates used in the Custom Code popup panel.
vc_custom_heading_template_use_wrapperFilters whether the Custom Heading element should use an additional wrapper <div> around the heading tag.
vc_custom_markup_render_filterFilters the rendered output of the custom_markup parameter type in the shortcode edit form.
vc_edit_form_classFilters the array of CSS classes applied to the edit form fields container element.
vc_edit_form_css_classFilters the CSS class string applied to the shortcode edit form panel container.
vc_edit_form_enqueue_scriptFilters the array of scripts registered for parameter types in the edit form.
vc_edit_form_fields_attributes_{tag}Filters the shortcode attributes before they are used to populate the edit form fields.
vc_edit_form_fields_optional_paramsFilters the list of optional parameter types that should not be initialized by default in the edit form.
vc_edit_form_fields_render_field_{type}_beforeFilters the HTML output rendered before a parameter field of a specific type in the WPBakery element edit form.
vc_el_id_render_filterFilters the rendered HTML output of the el_id parameter type form field.
vc_element_settings_filterFilters the settings array for a WPBakery element after it has been initialized from its configuration.
vc_enqueue_frontend_editor_jsFilters the array of JavaScript dependency handles that are enqueued for the WPBakery frontend editor.
vc_fe_render_shortcodeFilters the shortcode data array before it is rendered in the frontend editor.
vc_font_container_get_allowed_tagsFilters the list of allowed HTML tags available in the font container parameter's tag selector.
vc_font_container_get_fonts_filterFilters the list of web-safe fonts available in the font container parameter's font family selector.
vc_font_container_output_dataFilters the rendered output data array for the font container parameter before it is assembled into the final HTML output.
vc_font_container_render_filterFilters the final rendered HTML output of the entire font container parameter form field.
vc_form_fields_render_field_{base}_{param_name}_paramDynamic filters that allow modification of a specific parameter's configuration or value when rendering the element edit form.
vc_front_render_shortcodesFilters the final HTML output of all rendered shortcodes in the frontend editor after they have been processed and assembled.
vc_frontend_editor_iframe_urlThis filter may be handy if you want to change transfer protocol.
vc_frontend_editor_load_shortcode_ajax_outputFilters the complete AJAX output when loading a shortcode in the frontend editor.
vc_frontend_editor_new_post_dataFilters the post data array used when creating or updating a new post through the frontend editor.
vc_frontend_editor_to_stringFilters the shortcode data array before it is converted to a frontend editor string representation.
vc_frontend_template_the_contentFilters the parsed template content before it is output in the frontend editor template view.
vc_get_all_templatesFilters the complete array of template categories and their templates displayed in the WPBakery templates panel.
vc_get_editor_localeFilters the array of localized strings used by the WPBakery editor JavaScript.
vc_get_editor_wpb_dataFilters the WPBakery data array that is localized and passed to the editor JavaScript.
vc_get_inline_urlFilters the URL used to open the WPBakery frontend (inline) editor for a specific post.
vc_get_settings_localeFilters the array of localized strings used by the WPBakery settings page JavaScript.
vc_get_settings_wpb_dataFilters the WPBakery data array that is localized and passed to the settings page JavaScript.
vc_get_user_templatesFilters the array of user-saved templates retrieved from the WordPress options table.
vc_get_vc_grid_data_responseFilters the AJAX response output of a WPBakery Grid element when data is loaded or paginated via AJAX.
vc_gitem_add_link_paramFilters the "Add link" parameter definition array used by Grid Item shortcodes.
vc_gitem_add_link_target_paramFilters the "Open link in a new tab" parameter definition array used by Grid Item shortcodes.
vc_gitem_attribute_featured_image_imgFilters the featured image data returned by wpb_getImageBySize() for a Grid Item's featured image attribute.
vc_gitem_post_data_get_link_real_titleFilters the title attribute string for a grid item link when creating a "real" link (as opposed to a template placeholder link).
vc_gitem_post_data_get_link_relFilters the rel attribute string for a grid item link.
vc_gitem_post_data_get_link_titleFilters the title attribute string for a grid item link in the template-based link creation.
vc_gitem_template_attribute_acf_valueFilters the ACF (Advanced Custom Fields) field value before it is displayed in a grid item template.
vc_gitem_template_attribute_{name}Dynamic filter that allows modification of a specific grid item template attribute value.
vc_gitem_template_attribute_post_image_background_image_css_valueFilters the CSS background-image property value for a post's featured image in a grid item template.
vc_gitem_template_attribute_post_image_htmlFilters the HTML output of a post's featured image in a grid item template.
vc_gitem_template_attribute_post_image_url_valueFilters the post image URL value used in grid item templates.
vc_gitem_template_attribute_post_titleFilters the post title used in the title attribute of lightbox image links within grid item templates.
vc_gitem_template_attribute_vc_btnFilters the rendered button output used in grid item templates, particularly for the "Load More" button in pageable grid elements.
vc_gitem_template_attribute_woocommerce_order_{field}Dynamic filter that allows modification of WooCommerce order field values displayed in grid item templates.
vc_gitem_template_attribute_woocommerce_product_{field}Dynamic filter that allows modification of WooCommerce product field values displayed in grid item templates.
vc_gitem_template_attribute_woocommerce_product_link_valueFilters the WooCommerce "Add to Cart" URL for a product displayed in a grid item template.
vc_gitem_zone_grid_item_not_content_shortcodesFilters the list of shortcodes that are not allowed inside the content zone of a grid item.
vc_gitem_zone_image_block_linkFilters the image block link HTML in a grid item zone.
vc_global_js_dataFilters the global JavaScript data object (vcData) that is localized and made available to the WPBakery settings page scripts.
vc_google_fonts_get_fonts_filterFilters the list of Google Fonts available in the Google Fonts parameter type.
vc_google_fonts_render_filterFilters the rendered HTML output of the Google Fonts parameter field in the editor panel.
vc_grid_get_all_templatesFilters the complete list of grid item templates available in the grid item template picker.
vc_grid_get_grid_data_accessFilters whether the current AJAX request is allowed to retrieve grid data.
vc_grid_item_predefined_templatesFilters the predefined grid item templates.
vc_grid_item_preview_render_default_width_valueFilters the default width value used when rendering a grid item preview in the editor.
vc_grid_item_shortcodesFilters the list of shortcodes available for use within the grid item editor.
vc_grid_request_urlFilters the AJAX request URL used by the grid element for loading data (pagination, filtering, and lazy loading).
vc_hooks_vc_post_settingsFilters the post settings array before it is saved as post meta (_vc_post_settings).
vc_iconpicker-type-{type}Dynamic filter that provides the list of icons for a specific icon picker type.
vc_iconpicker_render_filterFilters the rendered HTML output of the icon picker parameter field in the editor panel.
vc_import_allow_fetch_attachmentsFilters whether downloading attachments is allowed during the WPBakery template import process.
vc_import_attachment_size_limitFilters the maximum file size for downloaded attachments during the WPBakery template import process.
vc_import_post_data_processedFilters the processed post data array just before the post is inserted into the database during the WPBakery template import.
vc_import_post_data_rawFilters the raw post data from the import file before it is processed during the WPBakery template import.
vc_import_post_metaFilters the array of post meta entries before they are saved during the WPBakery template import process.
vc_import_post_meta_keyFilters the meta key for each post meta entry during the WPBakery template import process.
vc_import_postsFilters the complete array of posts before they are processed during the WPBakery template import.
vc_inline_template_contentFilters the template content retrieved for the frontend (inline) editor.
vc_is_valid_post_type_beFilters whether a given post type is valid for the backend editor.
vc_layerslider_shortcodeFilters the rendered output of the LayerSlider shortcode within the WPBakery LayerSlider element.
vc_load_default_templatesMore information about operating with templates you can in Add More Custom Templates page.
vc_load_default_templates_limit_totalFilters the maximum number of default templates displayed in the templates panel.
vc_map_add_css_animationFilters the CSS animation parameter data array used when registering the animation param for elements.
vc_map_get_attributesFilters the merged shortcode attributes after combining user-supplied values with registered defaults.
vc_map_get_param_defaultsFilters the default value resolved for an individual shortcode parameter.
vc_mapper_attributeFilters each parameter (attribute) definition when a shortcode is being mapped.
vc_mapper_attribute_{type}Filters a shortcode param attribute by its type during mapping.
vc_nav_control_listFilters the list of navbar controls displayed in the WPBakery editor navigation bar.
vc_nav_front_logoFilters the HTML output of the WPBakery Page Builder logo displayed in the frontend editor navbar.
vc_page-welcome-slugs-listFilters the list of tab slugs and labels displayed on the WPBakery Welcome screen.
vc_param_animation_style_listFilters the list of available CSS animation styles for the animation_style parameter type.
vc_param_group_render_filterFilters the rendered HTML output of a param_group field.
vc_path_filterFilters file paths resolved by the Vc_Manager::path() method.
vc_pointers_listFilters the list of WordPress admin pointer IDs used by WPBakery Page Builder.
vc_popup_save_as_template_elementsFilters the list of element tags that show a "Save as Template" option instead of presets in the element settings popup.
vc_post_custom_cssFilters the custom CSS stored in post meta before it is output on the frontend.
vc_post_custom_layout_nameFilters the custom layout name for the current post.
vc_post_custom_layout_templateFilters the template file path used for a custom post layout.
vc_post_meta_listFilters the list of post meta keys managed by WPBakery Page Builder.
vc_raw_html_module_contentFilters the decoded content of the Raw HTML element before it is rendered on the frontend.
vc_render_settings_preset_popupFilters the template file path used to render the settings preset popup.
vc_render_settings_preset_title_promptFilters the template file path used to render the preset title prompt dialog.
vc_render_template_preview_include_templateFilters the template file path used to render the template preview in the backend editor.
vc_revslider_shortcodeFilters the rendered output of the Revolution Slider shortcode within the WPBakery Revolution Slider element.
vc_role_access_all_caps_roleFilters the WordPress role object before its capabilities are read by the WPBakery role access controller.
vc_role_access_with_{part}_canFilters whether a role can perform an action for a specific access part.
vc_role_access_with_{part}_can_{rule}Filters a specific rule check for a role access part.
vc_roles_parts_listFilters the list of role access parts (sections) available in the WPBakery Role Manager settings.
vc_setting-tab-form-{tab}Filters additional form attributes for a specific settings tab.
vc_settings-less-variablesFilters the LESS variable definitions used for compiling custom design options colors on the WPBakery settings page.
vc_settings-render-tab-{tab}Filters the template path used to render a specific settings tab.
vc_settings-tab-submit-button-attributes-{tab}Filters the submit button attributes for a specific settings tab.
vc_settings-tab-submit-button-attributesFilters the HTML attributes array for the submit button on WPBakery settings tabs.
vc_settings_exclude_post_typeFilters the list of post types excluded from the WPBakery Role Manager settings.
vc_settings_page_show_color-picker-tabFilters whether the Color Picker Settings tab is displayed on the WPBakery Page Builder settings page.
vc_settings_page_show_design_tabsControls whether the Design Options tab is displayed on the WPBakery Page Builder settings page when the plugin is activated as a theme-bundled...
vc_settings_page_show_typography_tabControls whether the Typography tab is displayed on the WPBakery Page Builder settings page.
vc_settings_tabsFilters the array of settings tabs displayed on the WPBakery Page Builder settings page.
vc_shared_templates_import_shortcodesFilters the list of shortcodes and their attribute keys that should be processed during shared template import for ID remapping.
vc_shortcode_content_filterFilter the output of elements before it is rendered in the shortcode template.
vc_shortcode_content_filter_afterFilter the output of elements after it is rendered in the shortcode template.
vc_shortcode_outputFilter the output of WPBakery elements that were defined using the WPBakeryShortCode class.
vc_shortcode_prepare_attsFilters the prepared shortcode attributes after they have been processed and sanitized by WPBakery Page Builder.
vc_shortcode_set_template_{shortcode}Filters the template file path for a specific shortcode.
vc_shortcodes_css_classExample how you can alter class names that are outputted for built-in content elements and elements that follow up our coding guidelines and utilize...
vc_shortcodes_is_adminFilters the result of the admin check used by shortcode classes to determine whether the current request is an admin context.
vc_shortcodes_{type}_cssFilters stored shortcodes CSS for a given asset type.
vc_show_button_feFilters whether the Frontend Editor button should be displayed for a given post.
vc_show_user_templatesFilters whether the "My Templates" category is shown in the templates panel.
vc_single_param_editFilters a single parameter configuration array before the edit form field is rendered in the shortcode settings panel.
vc_single_param_edit_holder_outputFilters the complete HTML output of a single parameter edit holder in the shortcode settings panel.
vc_site_attached_images_query_limitFilters the query limit for retrieving site-attached images in the deprecated vc_siteAttachedImages() function.
vc_template_custom_codeFilters the custom code data passed to the Custom Code panel UI template.
vc_templates_render_backend_templateFilters the rendered output of a backend template when it is loaded via AJAX in the templates panel.
vc_templates_render_backend_template_previewFilters the preview content of a backend template rendered in the templates panel preview area.
vc_templates_render_categoryFilters the rendered output for a template category tab in the templates panel.
vc_templates_render_frontend_templateFilters the rendered output of a template when it is loaded via AJAX in the Frontend Editor.
vc_templates_render_templateFilters the HTML output of a single template item within a template category list in the templates panel.
vc_third_party_modules_listFilters the list of third-party modules that should be registered with the WPBakery Page Builder module system.
vc_translate_column_width_classFilters the CSS class generated from a column width fraction (e.g., 1/2 becomes vc_col-sm-6).
vc_tta_accordion_general_classesFilters the array of CSS classes applied to the accordion (TTA) element wrapper.
vc_tta_container_classesFilters the array of CSS classes applied to the TTA (Tabs, Tours, Accordions) container element.
vc_tta_section_param_heading_tagFilters the HTML heading tag used for TTA section titles (e.g., accordion panel or tab heading).
vc_ui-pointers-{screen_id}Filters UI pointers for a specific admin screen.
vc_user_access_check-shortcode_allFilters the access check result for a shortcode before the default role-based access logic runs.
vc_user_access_with_{part}_get_stateFilters the access state for a specific part for the current user.
vc_vendor_layerslider_oldFilters whether to use the old-style LayerSlider vendor integration that queries the database directly instead of using the LS_Sliders class.
vc_vendor_qtranslate_enqueue_js_backendFilters whether to enqueue the qTranslate backend JavaScript integration regardless of the current post type validity check.
vc_wp_text_widget_shortcodeFilters the content of the WP Text Widget shortcode element before it is passed to the widget instance.
vc_wpb_getimagesizeFilters the image data returned by wpb_getImageBySize(), which includes a thumbnail HTML tag and the large image source array.
vc_wpbakery_shortcode_get_column_controls_modular_templateFilters the template file path used for rendering modular column controls in the backend editor.
vc_wpbakery_shortcode_get_controls_listFilters the list of control actions available for a shortcode element in the backend editor (e.g., edit, clone, copy, delete).
vc_wpbakeryshortcode_single_param_html_holder_valueFilters the parameter value used when rendering a single param HTML holder in the backend editor.
wpb_ai_content_type_listFilters the list of content type options displayed in the "Content type" dropdown of the WPBakery AI popup.
wpb_ai_modal_type_dependencyFilters the mapping between parameter types and their AI modal template paths.
wpb_ai_number_of_symbols_listFilters the list of content length options displayed in the "Length" dropdown of the WPBakery AI popup.
wpb_ai_tone_of_voice_listFilters the list of tone-of-voice options displayed in the "Tone of voice" dropdown of the WPBakery AI popup.
wpb_cta_textFilters the call-to-action text HTML output in the CTA Button element.
wpb_custom_html_elementsFilters the list of element shortcode tags that are considered to contain custom HTML.
wpb_disable_local_fontsFilters whether to disable the local Google Fonts feature.
wpb_download_all_google_fontsFilters whether to download all Google Fonts for local hosting instead of only the fonts used on the site.
wpb_enqueue_backend_editor_cssFilters the list of CSS stylesheet handles to enqueue in the backend editor.
wpb_enqueue_backend_editor_jsFilters the list of JavaScript handles to enqueue in the backend editor.
wpb_enqueue_frontend_editor_cssFilters the list of CSS stylesheet handles to enqueue in the frontend editor.
wpb_get_ai_icon_templateFilters the template path used to render the AI icon for a given field.
wpb_is_post_custom_layout_blankFilters whether the current post uses a blank custom layout.
wpb_loop_query_build_argsFilters the WP_Query arguments built by the loop parameter type before the query is executed.
wpb_module_ai_element_param_typesFilters the list of element parameter types that display the AI icon in the editor.
wpb_module_ai_text_field_wordsFilters the list of keywords used to determine whether a textfield parameter should display the AI icon.
wpb_module_ai_type_response_route_libFilters the routing configuration that maps element parameter types to their AI response handler classes and API endpoints.
wpb_navbar_getControlScreenSizeFilters the available screen sizes for the responsive preview control in the frontend editor navbar.
wpb_set_post_custom_metaFilters the custom meta values associated with a post in the editor.
wpb_shortcode_acf_display_when_empty_valueFilters whether the ACF (Advanced Custom Fields) shortcode element should render output when the field value is empty.
wpb_toggle_headingFilters the heading HTML output of the Toggle (FAQ) element.
wpb_update_post_param_listFilters the list of post parameter names that WPBakery will update when saving a post from the editor.
wpb_vc_js_status_filterFilters the WPBakery editor status for the current post.
wpb_widget_titleTo output title for content elements WPBakery Page Builder is using h2 tag, if you need to modify it, here is how it can be done: