Browse the database of various action and filter hooks available in Paid Memberships Pro. Select an action or filter to view detailed information, examples, and related articles with code recipes.

Show Action and Filter Hooks in:

Filter Hook: 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.

Filter Hook: 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.

Filter Hook: 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.

Filter Hook: Filter to allow plugins and themes to find the protected post.

Filter Hook: Filter to let other plugins change how PMPro filters member content. If anything other than false is returned, that value will overwrite the $content variable and no further processing is done in this function.

Filter Hook: Hide levels that don’t allow signups by default (default is false, to not show the levels).

Filter Hook: Filters the message displayed when the post is viewed by in an RSS feed. By default, this message will display the default text: This content is for members only. Visit the site and log in/register to read.

Filter Hook: Allows you to add additional post types to the Memberships > Settings > Advanced Settings > “Filter Searches and Archives?” functionality.