Allows you to add additional post types to the Memberships > Settings > Advanced Settings > “Filter Searches and Archives?” functionality.
/** * Filter the post types included in the filter to hide * members-only content from search. * * @param array $pmpro_search_filter_post_types The post types to include * in the search filter. * The default included post types are page and post. * * @return array $pmpro_search_filter_post_types. */ apply_filters( 'pmpro_search_filter_post_types', array $pmpro_search_filter_post_types );
- An array of post types to include
SourceView in Source Code
Related Articles and Recipes
Filter Members-Only CPTs from Searches and Archives By Kimberly Coleman