• Resolved Henry Wright

    (@henrywright)


    I was thinking about doing this:

    add_filter( 'show_admin_bar', '__return_false', 99 );

    Then I noticed in class-wp-front-end-editor.php around line 152 you have commented:

    Hiding the admin bar for the front-end editor is not the right way to turn it off

    May I ask why isn’t it a good idea to hide the admin bar like this?

    For me, the full admin bar isn’t *always* necessary. My aim is to let a user edit the post title and content by providing them with a simple save link on the edit page such as <span id="fee-save" class="button button-primary" href="#">Save</span>

    Would this be bad practice?

    https://www.ads-software.com/plugins/wp-front-end-editor/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ella

    (@ellatrix)

    That filter is there to force the admin bar to show up even if users unticked ‘Show Toolbar when viewing site’. Of course you could still make it work without the toolbar. Mind though that the TinyMCE toolbar will also move to the admin bar.

    Thread Starter Henry Wright

    (@henrywright)

    Yes, i’ll keep that in mind. Many thanks for clarifying.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Admin bar visibility’ is closed to new replies.