Some users reported the recipe not redirecting to the referer after checkout.
Updated the my_pmpro_redirect_to_referring_page_after_checkout_track
function that sets the cookie here: ipokkel/32d6ba9425d4550a5861709498e00135
<?php | |
/** | |
* Integrate with WPGraphQL to check if the current user has access to certain post types. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ |
<?php | |
/** | |
* For the Invite Only Add On, set the maximum times a code can be used to only once. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ |
# Add this to your .htaccess code just like the normal getfile.php code. | |
# Follow instructions here first and then add the line: https://www.paidmembershipspro.com/locking-down-protecting-files-with-pmpro/ | |
RewriteRule ^protected-directory/(.*)$ /wp-content/plugins/paid-memberships-pro/services/getfile.php [L] |
Some users reported the recipe not redirecting to the referer after checkout.
Updated the my_pmpro_redirect_to_referring_page_after_checkout_track
function that sets the cookie here: ipokkel/32d6ba9425d4550a5861709498e00135
<?php // do not copy this line. | |
/** | |
* This recipe will disable the HTML removal from email templates when using unsupported tags. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ |
<?php | |
// pods_register_taxonomy_{YOUR_TAXONOMY_NAME_HERE} | |
add_filter( 'pods_register_taxonomy_my_custom_tax', 'my_pods_taxonomy_hide_meta_box' ); | |
/** | |
* Set the taxonomy meta box callback to false so it will hide the meta box on associated post types. | |
* | |
* @param array $options The list of taxonomy options for register_taxonomy(). | |
* | |
* @return array The list of taxonomy options for register_taxonomy(). |
<?php // do not copy this line. | |
/** | |
* This recipe will help fix confirmation emails so they go out as expected for the Multiple Memberships Per User Add On. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ |
<?php // do not copy this line. | |
/** | |
* This recipe will allow requests from MailPoet on the frontend and prevent them from improperly redirecting to the Membership Dashboard page. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ |