Skip to content

Instantly share code, notes, and snippets.

@shazdeh
Created November 6, 2013 07:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save shazdeh/7332067 to your computer and use it in GitHub Desktop.
Disable the Builder frontpage editor
<?php
function disable_frontend_builder() {
global $ThemifyBuilder;
if( ! is_admin() ) {
remove_action( 'wp_enqueue_scripts', array( $ThemifyBuilder, 'load_front_js_css' ), 10 );
remove_action( 'wp_before_admin_bar_render', array( $ThemifyBuilder, 'builder_admin_bar_menu'), 1000 );
}
}
add_action( 'init', 'disable_frontend_builder' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment