WordPress filter hook

pmpro_checkout_start_date

Fired by 10 WordPress plugins, running on 10K+ sites between them.

“Filter the start date for the membership/subscription.”

How to use pmpro_checkout_start_date

It's a filter: your callback receives the value and 2 more arguments, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'pmpro_checkout_start_date', function( $value, $user_id, $membership_level ) {
	// Change $value here.
	return $value;
}, 10, 3 );

Argument names come from IDPay For Paid Memberships Pro's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

10 plugins that fire pmpro_checkout_start_date

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. AutomatorWP icon AutomatorWP6,000+ installs apply_filters( 'pmpro_checkout_start_date', "'" . current_time( 'mysql' ) . "'", $user_id, $level_info ) integrations/paid-memberships-pro/includes/actions/add-user-membership.php:91
  2. MStore API icon MStore API2,000+ installs apply_filters( 'pmpro_checkout_start_date', $startdate, $user_id, $pmpro_level ) controllers/flutter-paid-memberships-pro.php:410
  3. Knit Pay icon Knit Pay2,000+ installs apply_filters( 'pmpro_checkout_start_date', "'" . current_time( 'mysql' ) . "'", $morder->user_id, $morder->membership_level ) extensions/PaidMembershipsPro/Extension.php:210
  4. Zarinpal Paid Memberships Pro icon Zarinpal Paid Memberships Pro100+ installs apply_filters( 'pmpro_checkout_start_date', "'".current_time('mysql')."'", $morder->user_id, $morder->membership_level ) index.php:321
  5. IDPay For Paid Memberships Pro icon IDPay For Paid Memberships Pro40+ installs apply_filters( 'pmpro_checkout_start_date', "'" . current_time('mysql') . "'", $morder->user_id, $morder->membership_level ) idpay-paid-memberships-pro.php:547
  6. TakBull For Paid Memberships Pro icon TakBull For Paid Memberships Pro30+ installs apply_filters( 'pmpro_checkout_start_date', "'" . current_time('mysql') . "'", $morder->user_id, $morder->membership_level ) includes/takbull_webhook.php:152
  7. Voguepay plugin for Paid Memberships Pro icon Voguepay plugin for Paid Memberships Pro10+ installs apply_filters( 'pmpro_checkout_start_date', "'" . current_time("mysql") . "'", $morder->user_id, $pmpro_level ) class.pmprogateway_voguepay.php:182
  8. Thanh toan Ngan Luong for Paid Membership Pro icon Thanh toan Ngan Luong for Paid Membership ProFewer than 10 installs apply_filters( 'pmpro_checkout_start_date', "'" . current_time("mysql") . "'", $morder->user_id, $pmpro_level ) classes/class.pmprogateway_nganluong.php:353
  9. Vandar Payment Gateway for Paid Memberships Pro icon Vandar Payment Gateway for Paid Memberships ProFewer than 10 installs apply_filters( 'pmpro_checkout_start_date', "'" . current_time( 'mysql' ) . "'", $morder->user_id, $morder->membership_level ) vandar-paid-memberships-pro.php:445
  10. Bitcoin payment for Paid Memberships Pro icon Bitcoin payment for Paid Memberships ProFewer than 10 installs apply_filters( 'pmpro_checkout_start_date', "'" . current_time('mysql') . "'", $morder->user_id, $morder->membership_level ) coinsnap-for-pmpro-class.php:823

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.