Skip to main content

Actions

Actions are WordPress hooks that allow you to execute custom code at specific points during WPBakery Page Builder's execution. Unlike filters, actions don't return a value — they allow you to add custom behavior.

add_action('action_name', 'your_custom_function', 10, 2);

function your_custom_function($param1, $param2) {
// Your custom code here
}

All Actions

ActionDescription
vc-render-templates-preview-templateFires during the template preview rendering process.
vc-settings-render-tab-{tab}Fires when a specific WPBakery settings tab is being rendered.
vc-vendor-acf-loadFires after the Advanced Custom Fields (ACF) vendor integration has been loaded and initialized.
vc_activation_hookFires during the WPBakery Page Builder plugin activation process.
vc_after_initFires after WPBakery Page Builder has fully completed its initialization sequence.
vc_after_init_autoloadFires after the autoload manager has been initialized.
vc_after_init_automapperFires after the automapper component has been initialized.
vc_after_init_baseFires after the base class initialization is complete.
vc_after_init_configFires after the configuration library has been initialized.
vc_after_init_licenseFires after the license manager has been initialized.
vc_after_init_modulesFires after the modules manager has been initialized.
vc_after_init_settingsFires after the settings manager has been initialized.
vc_after_init_updaterFires after the updater component has been initialized.
vc_after_init_vcFires after the main WPBakery Page Builder instance has been initialized.
vc_after_mappingFires after all default shortcodes have been mapped.
vc_after_set_modeFires after the WPBakery Page Builder editor mode has been determined and set.
vc_backend_editor_enqueue_js_cssFires after the backend editor has enqueued its JavaScript and CSS files.
vc_backend_editor_footer_renderFires after the backend editor footer has been rendered.
vc_backend_editor_renderFires after the backend editor has been rendered.
vc_base_register_admin_cssFires during admin CSS registration.
vc_base_register_admin_jsFires during admin JavaScript registration.
vc_base_register_front_cssFires after front-end CSS styles have been registered.
vc_base_register_front_jsFires after front-end JavaScript libraries have been registered.
vc_before_initFires at the very beginning of WPBakery Page Builder initialization.
vc_before_init_autoloadFires before the autoload manager is initialized.
vc_before_init_automapperFires before the automapper component is initialized.
vc_before_init_backend_editorFires before the backend editor component is initialized.
vc_before_init_baseFires before the base class initialization begins.
vc_before_init_configFires before the config component is initialized.
vc_before_init_frontend_editorFires before the frontend editor component is initialized.
vc_before_init_licenseFires before the license component is initialized.
vc_before_init_modulesFires before the modules component is initialized.
vc_before_init_settingsFires before the settings component is initialized.
vc_before_init_updaterFires before the updater component is initialized.
vc_before_init_vcFires before the main VC instance is initialized.
vc_before_mappingFires before shortcode mapping begins.
vc_build_admin_pageFires when building an admin page.
vc_build_pageFires when building a frontend page.
vc_edit_form_fields_after_renderFires after the element edit form fields are rendered.
vc_editor_footerFires when rendering the editor footer partial.
vc_enqueue_font_icon_elementHook for custom enqueue of icon font stylesheets.
vc_front_load_page_{action}Dynamic hook fired when loading a frontend editor page action.
vc_frontend_editor_enqueue_js_cssFires when enqueueing JavaScript and CSS for the frontend editor.
vc_frontend_editor_hook_load_editFires when the frontend editor loads an edit page.
vc_frontend_editor_renderFires when the frontend editor is rendered.
vc_frontend_editor_render_templateFires when rendering a template in the frontend editor.
vc_import_endFires at the end of a template import process.
vc_import_insert_postFires after a post is inserted during a template import.
vc_import_post_existsFires when an imported post has an invalid post type.
vc_import_post_metaFires when importing post meta during a template import.
vc_import_pre_endFires just before the import process ends.
vc_import_startFires at the start of a template import process.
vc_inline_editor_page_viewFires when the inline (frontend) editor page view is loaded.
vc_load_default_paramsFires after WPBakery registers its built-in parameter types (textfield, textarea, dropdown, etc.).
vc_load_default_templates_actionFires after the default templates have been loaded and the vc_load_default_templates filter has been applied.
vc_load_iframe_jscssFires after the frontend editor enqueues its core JavaScript and CSS assets for the inline iframe.
vc_load_shortcodeFires when the frontend editor loads shortcodes for rendering.
vc_mapper_call_activities_beforeFires before the mapper processes its queued activities (element mappings, parameter modifications, etc.).
vc_mapper_init_afterFires after the WPBakery mapper has completed initialization, including loading parameter definitions, setting the init flag, loading the lean map...
vc_mapper_init_beforeFires before the WPBakery mapper begins initialization.
vc_menu_page_buildFires after the main WPBakery Page Builder admin menu page has been registered.
vc_network_menu_page_buildFires after the WPBakery Page Builder network admin menu page has been registered in a WordPress multisite environment.
vc_page_settings_buildFires after the WPBakery settings page tabs have been built and their load callbacks registered.
vc_page_settings_render-{page}Dynamic action that fires before a specific WPBakery settings page is rendered.
vc_plugins_loadedFires when WPBakery Page Builder has finished loading during the WordPress plugins_loaded hook.
vc_settings_set_sectionsFires after all settings sections and tabs have been configured.
vc_settings_tab-{tab}Dynamic action that fires for each registered settings tab during section initialization.
vc_templates_delete_templatesFires when a template deletion is requested for a non-default template type.
vc_ui-template-previewFires during the template preview rendering in both the backend editor and the grid item editor.
vc_vc_grid_item_editor_renderFires when the WPBakery Grid Item editor is rendered.
vc_vendor_yoastseo_filter_resultsFires before WPBakery content is parsed for Yoast SEO analysis.
wpb_add_after_settings_formFires after the closing </form> tag on WPBakery settings pages.
wpb_add_before_closing_form_tagFires just before the closing </form> tag on WPBakery settings pages.
wpb_add_before_open_form_tagFires inside the opening <form> tag on WPBakery settings pages, after the action attribute but before the method attribute.
wpb_add_before_settings_formFires before the opening <form> tag on WPBakery settings pages.
wpb_add_element_controlsFires after the element edit form panel body and footer are rendered, just before the modal wrapper closes.
wpb_after_enqueue_element_google_fontsFires after a Google Font has been enqueued for a WPBakery element.
wpb_after_register_backend_editor_cssFires after WPBakery registers its CSS stylesheets for the backend editor.
wpb_after_register_backend_editor_jsFires after WPBakery registers its JavaScript files for the backend editor.
wpb_after_register_frontend_editor_cssFires after WPBakery registers its CSS stylesheets for the frontend editor.
wpb_after_register_frontend_editor_jsFires after WPBakery registers its JavaScript files for the frontend editor.