pmpro_has_membership_access_filter

Use this hook to filter the membership access of a given post. This overrides the output of the pmpro_has_membership_access() function and returns the boolean true or false, the WP_Post object, the  WP_User object, and an array of the membership levels required for the post.


apply_filters("pmpro_has_membership_access_filter", bool $hasaccess, WP_post $mypost, WP_user $myuser, array $post_membership_levels);

pmpro_has_membership_access_filter_{post_type}

Use this hook to filter the membership access of a given post by specific post type. This overrides the output of the pmpro_has_membership_access() function and returns the boolean true or false, the WP_Post object, the  WP_User object, and an array of the membership levels required for the post.


apply_filters("pmpro_has_membership_access_filter_" . $mypost->post_type, bool $hasaccess, WP_post $mypost, WP_user $myuser, array $post_membership_levels);

pmpro_rss_text_filter

Filters the message displayed when the post is viewed by in an RSS feed. By default, this is set to display the text configured on the Memberships > Advanced Settings page.


apply_filters("pmpro_rss_text_filter", stripslashes(pmpro_getOption("rsstext")));

pmpro_non_member_text_filter

Filters the message displayed when the post is viewed by a logged in WordPress user who does not have a PMPro membership level. By default, this is set to display the text configured on the Memberships > Advanced Settings page.


apply_filters("pmpro_non_member_text_filter", string stripslashes(pmpro_getOption("nonmembertext")));

pmpro_not_logged_in_text_filter

Filters the message displayed when the post is viewed by a visitor who does not have a WordPress user account. By default, this is set to display the text configured on the Memberships > Advanced Settings page.


apply_filters("pmpro_not_logged_in_text_filter", string stripslashes(pmpro_getOption("notloggedintext")));

excerpt_length

This filter is the same as the WordPress core filter. PMPro uses it when displaying excerpts as part of the pmpro_membership_content_filter() function.


apply_filters('excerpt_length', 55);