• Hello, I want to remove the link Edit from the site I am building – I know only I can see it.

    I successfully added the below code in Code Snippets to remove ‘Edit with WP Bakery’. Does anyone have any suggestions on how to remove ‘Edit’?

    Thank you

    <?php 
    function vc_remove_frontend_links() { vc_disable_frontend(); // this will disable frontend editor 
    } 
    add_action( 'vc_after_init', 'vc_remove_frontend_links' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator threadi

    (@threadi)

    Try this:

    add_action(
        'admin_bar_menu',
        function( $wp_admin_bar ) {
            $wp_admin_bar->remove_node( 'edit' );
        },
        1000
    );

    Please try it.

    function remove_edit_post_link() {
    remove_action('admin_menu', '_wp_post_thumbnail_html');
    }
    add_action('init', 'remove_edit_post_link');

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘remove “edit” from all pages’ is closed to new replies.