Title: pmpro_content_message
Last modified: August 21, 2016

---

# pmpro_content_message

 *  [jackloader1](https://wordpress.org/support/users/jackloader1/)
 * (@jackloader1)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/pmpro_content_message/)
 * Is there away to display the pmpro_content_message “this content is for .. members
   only” inside the pmpro_hasMembershipLevel if statement? I am using a custom post
   type and would like to hide a custom menu instead of the content. When they log
   in or register the menu will then be seen.
 * [https://wordpress.org/plugins/paid-memberships-pro/](https://wordpress.org/plugins/paid-memberships-pro/)

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

 *  Plugin Author [Jason Coleman](https://wordpress.org/support/users/strangerstudios/)
 * (@strangerstudios)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/pmpro_content_message/#post-5139586)
 * Here is the code in the content filter function that displays this text. You 
   can use something similar:
 * [https://github.com/strangerstudios/paid-memberships-pro/blob/dev/includes/content.php#L271-L288](https://github.com/strangerstudios/paid-memberships-pro/blob/dev/includes/content.php#L271-L288)
 *  Thread Starter [jackloader1](https://wordpress.org/support/users/jackloader1/)
 * (@jackloader1)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/pmpro_content_message/#post-5139597)
 * thanks for your help
 *  Thread Starter [jackloader1](https://wordpress.org/support/users/jackloader1/)
 * (@jackloader1)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/pmpro_content_message/#post-5139598)
 * This message is displayed twice if I have the excerpt and the content on the 
   same page. Is there a way to only display it once and not multiple times?
 * cheers
 *  [Jessica Oros](https://wordpress.org/support/users/jessica-o/)
 * (@jessica-o)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/pmpro_content_message/#post-5139605)
 * That depends on how your theme and templates are set up, but you you could check
   for membership first with pmpro_hasMembershipLevel() and then choose to display
   either the content or excerpt.

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

The topic ‘pmpro_content_message’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paid-memberships-pro_f1dacb.svg)
 * [Paid Memberships Pro - Content Restriction, User Registration, & Paid Subscriptions](https://wordpress.org/plugins/paid-memberships-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paid-memberships-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paid-memberships-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/paid-memberships-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paid-memberships-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paid-memberships-pro/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Jessica Oros](https://wordpress.org/support/users/jessica-o/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/pmpro_content_message/#post-5139605)
 * Status: not resolved