← All changes
|
integrations/paid-membership-subscriptions/includes/functions.php
+23
-0
7.9.1
→
8.0.6
View file →
| @@ -1,0 +1,23 @@ | ||
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Functions | |
| 4 | + * | |
| 5 | + * @package GamiPress\Paid-Membership-Subscriptions\Functions | |
| 6 | + * @since 1.0.0 | |
| 7 | + */ | |
| 8 | + | |
| 9 | +// Exit if accessed directly | |
| 10 | +if( !defined( 'ABSPATH' ) ) exit; | |
| 11 | + | |
| 12 | +/** | |
| 13 | + * Overrides GamiPress AJAX Helper for selecting posts | |
| 14 | + * | |
| 15 | + * @since 1.0.0 | |
| 16 | + */ | |
| 17 | +function gamipress_paid_membership_subscriptions_add_active_status( ){ | |
| 18 | + | |
| 19 | + $where = " OR p.post_status = 'active'"; | |
| 20 | + | |
| 21 | + return $where; | |
| 22 | +} | |
| 23 | +add_filter( 'gamipress_ajax_get_posts_query_args', 'gamipress_paid_membership_subscriptions_add_active_status' ); | |