WordPress.org

Forums

remove toolbar from frontend by default (1 post)

  1. rec19
    Member
    Posted 1 year ago #

    I would like to remove the toolbar from frontend by default so I can then remove the option in user profiles.

    I looked on codex wordpress and found:

    update_user_option( $user_id, 'show_admin_bar_front', false );

    I thought I could maybe replace $user_id with $global but it doesn't work.

    Does anyone know how to do this.

Topic Closed

This topic has been closed to new replies.

About this Topic