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 | |
| /** | |
| * Customize the TablePress columns to use. | |
| * | |
| * @param array $columns The list of columns to be used. | |
| * @param string $pod_name The pod name. | |
| * @param Pods $pod The Pods object. | |
| * @param array $params The Pods::find() parameters to be used. | |
| * @param array $table The TablePress information. |
| <?php | |
| // Avoid preloading blocks in the block editor -- this prevents page timeouts with large sets of blocks. | |
| add_filter( 'pods_blocks_types_preload_block', '__return_false' ); | |
| <?php | |
| echo '<h1>Site PHP Error</h1>'; | |
| echo '<h2>Type</h2>'; | |
| var_dump( $error['type'] ); | |
| echo '<h2>Message</h2>'; | |
| echo '<pre>'; |
| <?php | |
| /** | |
| * Show the PMPro Pods fields on the My Membership Account page under the Account Details (Profile) section. | |
| * | |
| * This functionality will be unnecessary in a future PMPro Pods Add On vesion. | |
| * | |
| * 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 | |
| /** | |
| * Fix LearnPress PMPro Add On compatibility issue with Email Template overrides. | |
| * | |
| * 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 | |
| /** | |
| * 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