strangerstudios / paid-memberships-pro

WordPress membership plugin to restrict access to content and charge recurring subscriptions using Stripe, PayPal, and more. Fully open source. 100% GPL.
https://www.paidmembershipspro.com
Other
460 stars 357 forks source link

Please consider adding a few do_actions to membershiplevels.php #2083

Open zagarskas opened 2 years ago

zagarskas commented 2 years ago

The following two do_actions would be really nice to have when adding custom meta fields to levels:

On line 394 https://github.com/strangerstudios/paid-memberships-pro/blob/99089e9ef38b85fd358fc4661dc55cd125520641/adminpages/membershiplevels.php#L394

This would be great: do_action( 'pmpro_membership_level_before_billing_details', $level );

On 373 https://github.com/strangerstudios/paid-memberships-pro/blob/99089e9ef38b85fd358fc4661dc55cd125520641/adminpages/membershiplevels.php#L373

This would be great: do_action( 'pmpro_membership_level_after_description', $level );

mircobabini commented 2 years ago

Thanks for sharing your ideas.

I would slightly change the action names to be more consistent, but I think this is useful to place your settings the way you want.