Title: hide button &#8220;Messages&#8221;
Last modified: March 30, 2022

---

# hide button “Messages”

 *  Resolved [prog7](https://wordpress.org/support/users/prog7/)
 * (@prog7)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/hide-button-messages/)
 * Hello!
    I have site with Sensei LMS plugin. And oh this page [https://ivankroshnyi.com/my-courses/](https://ivankroshnyi.com/my-courses/)
   are register/login forms and button “my messages”. Can you help me? – how I can
   display this button only for autorized users?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhide-button-messages%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Jay](https://wordpress.org/support/users/bluejay77/)
 * (@bluejay77)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/hide-button-messages/#post-15524952)
 * Hi [@prog7](https://wordpress.org/support/users/prog7/),
 * Sensei doesn’t have a native way of changing the visibility of the button. I 
   think the easiest way here is to use another plugin or such to provide a block
   that can show or hide the internal content based on if the user is authenticated
   or not.
 * Taking a quick look here, a good option could be something similar to the plugin
   [Block Visibility](https://wordpress.org/plugins/block-visibility/), which provides
   exactly that.
 * After installing it, the user can go to the “My Courses” page editor and edit
   the block “My Messages” to show when the user is logged in, as shown in the screenshot:
   [https://d.pr/i/R2ye3b](https://d.pr/i/R2ye3b)
 * Please note that we do not officially endorse any third-party plugins, and we
   cannot guarantee that Block Visibility plugin will work perfectly with Sensei.
   We provided Block Visibility as an example, one possible option among many plugins
   that provide similar features. We recommend carefully vetting all plugins you
   use to ensure compatibility with the rest of your site.
 * I hope that helps!
 *  Thread Starter [prog7](https://wordpress.org/support/users/prog7/)
 * (@prog7)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/hide-button-messages/#post-15533894)
 * Yes, it works!
    Thanks!
 *  Plugin Support [Jay](https://wordpress.org/support/users/bluejay77/)
 * (@bluejay77)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/hide-button-messages/#post-15533921)
 * Hi [@prog7](https://wordpress.org/support/users/prog7/),
 * That’s great to hear! Thanks for letting us know.
 * I’m marking this topic as resolved. But if you have any further questions or 
   need some more help, you’re welcome to reply here or open another thread.

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

The topic ‘hide button “Messages”’ is closed to new replies.

 * ![](https://ps.w.org/sensei-lms/assets/icon-128x128.gif?rev=2914239)
 * [Sensei LMS - Online Courses, Quizzes, & Learning](https://wordpress.org/plugins/sensei-lms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sensei-lms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sensei-lms/)
 * [Active Topics](https://wordpress.org/support/plugin/sensei-lms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sensei-lms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sensei-lms/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jay](https://wordpress.org/support/users/bluejay77/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/hide-button-messages/#post-15533921)
 * Status: resolved