Skip to content

Commit

Permalink
Updating readme and version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
dparker1005 committed Feb 5, 2025
1 parent 7f0fce2 commit f2304c4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
8 changes: 4 additions & 4 deletions pmpro-subscription-delays.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Paid Memberships Pro - Subscription Delays Add On
Plugin URI: https://www.paidmembershipspro.com/add-ons/subscription-delays/
Description: Adds a field to delay the start of a subscription for membership levels and discount codes for variable-length trials.
Version: 0.5.7
Version: 0.6
Author: Paid Memberships Pro
Author URI: https://www.paidmembershipspro.com
Text Domain: pmpro-subscription-delays
Expand Down Expand Up @@ -129,14 +129,14 @@ function pmprosd_pmpro_profile_start_date( $start_date, $order ) {
$start_date = $today;
}

$start_date = apply_filters( 'pmprosd_modify_start_date', $start_date, $order, $subscription_delay );
$start_date = apply_filters_deprecated( 'pmprosd_modify_start_date', array( $start_date, $order, $subscription_delay ) , '0.6', 'pmpro_checkout_level' );
return $start_date;
}

/**
* Add the profile start date to a checkout level.
*
* @since TBD
* @since 0.6
*
* @param object $level The PMPro Level object.
*/
Expand Down Expand Up @@ -179,7 +179,7 @@ function pmprosd_pmpro_checkout_level( $level ) {
* Hook the pmprosd_pmpro_checkout_level() function if running PMPro v3.4+.
* Otherwise, hook the legacy pmprosd_pmpro_profile_start_date() function.
*
* @since TBD
* @since 0.6
*/
function pmprosd_hook_pmpro_profile_start_date() {
if ( version_compare( PMPRO_VERSION, '3.4', '>=' ) ) {
Expand Down
9 changes: 7 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: strangerstudios
Tags: paid memberships pro, pmpro, memberships, ecommerce
Requires at least: 5.2
Tested up to: 6.6
Stable tag: 0.5.7
Tested up to: 6.7
Stable tag: 0.6

Adds a "delay" field to PMPro membership levels and discount codes, allowing you to set a variable-length period between your initial payment (if required) and recurring subscription payment.

Expand All @@ -24,6 +24,11 @@ Set "delay" to be:
1. That's it. No settings.

== Changelog ==
= 0.6 - 2025-02-05 =
* BUG FIX/ENHANCEMENT: Now setting the profile start date directly on the checkout level object for sites running PMPro v3.4+. #48 (@dparker1005)
* BUG FIX: Fixed an issue where discount codes with numeric codes were not setting the profile start date correctly. #46 (@dparker1005, @kimwhite)
* DEPRECATED: Deprecated the `pmprosd_modify_start_date` filter. The `pmpro_checkout_level` filter should be used instead. #48 (@dparker1005)

= 0.5.7 - 2024-08-13 =
* BUG FIX: Fixed an issue where subscription delays set on discount codes were not being applied. #45 (@dparker1005)

Expand Down

0 comments on commit f2304c4

Please sign in to comment.