Skip to main content

vc_editor_footer

Fires when rendering the editor footer partial. This hook runs at the end of the editor footer template and receives the current editor instance, which can be either the backend or frontend editor.

Parameters​

ParameterTypeDescription
$editorVc_Backend_Editor|Vc_Frontend_EditorThe current editor instance.

Usage​

add_action( 'vc_editor_footer', 'wpb_custom_editor_footer', 10, 1 );

function wpb_custom_editor_footer( $editor ) {
// Add custom content to the editor footer
// Check which editor is active
if ( $editor instanceof Vc_Frontend_Editor ) {
echo '<script>console.log("Frontend editor footer loaded");</script>';
}
}

Source​

File: include/templates/editors/partials/footer.tpl.php