Last active
July 20, 2016 21:35
-
-
Save jessepearson/852447a86511b0ed7b2ace684b111da1 to your computer and use it in GitHub Desktop.
Filter to modify query for posts/content shown in My Membership area
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Filter restricted content query args | |
| * | |
| * @since 1.6.3 | |
| * @param array $query_args Args passed to WP_Query | |
| * @param string $query_type Type of request: 'content_restriction', 'product_restriction', 'purchasing_discount' | |
| * @param int $query_paged Pagination request | |
| */ | |
| $query_args = apply_filters( 'wc_memberships_get_restricted_posts_query_args', $query_args, $type, $paged ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment