This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Adds last payment date and next payment date to the members list and export CSV. | |
* Note that "last payment" value will get the last order in "success", "cancelled", or "" status. (Oddly enough, cancelled here means that the membership was cancelled, not the order.) | |
* | |
* The "next payment" value is an estimate based on the billing cycle of the subscription and the last order date. It may be off from the actual recurring date set at the gateway, especially if the subscription was updated at the gateway. | |
* | |
* 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Hide the membership pricing box on Landing Page checkout form and replace with our own. | |
* | |
* Requires Paid Memberships Pro and Sitewide Sales. | |
* | |
*/ | |
function maybe_add_choose_level_section_swsales( $include_pricing_fields ) { | |
global $wpdb, $pmpro_level; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Filters the array of available landing page templates for Sitewide Sales (https://sitewidesales.com). | |
* | |
* @param array $templates The default list of available templates. | |
*/ | |
function add_custom_swsales_landing_page_templates( $templates ) { | |
$templates['black-friday'] = 'Black Friday'; // This is how you add a new template to the array. | |
//unset( $templates['neon'] ); // This is how you unset an included template from the array. | |
return $templates; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Allow large JOIN operations in the Member Directory and Profiles Add On for Paid Memberships Pro. | |
* | |
* 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/ | |
* | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Landing Page Content --> | |
[membership level="0"]This tutorial video shows you how to add a free membership level and set up a landing page to capture subscribers. Sign up now to access the video![/membership] | |
[membership level="1"] | |
https://youtu.be/6q4882GypxY | |
[/membership] | |
[membership level="0"] | |
[pmpro_signup level="1" title="Sign Up to Watch" short="true" intro="Enter your email address and create a password to gain access."] | |
[/membership] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Require a sponsor code for the "child" level checkout when using | |
* Paid Memberships Pro and the Sponsored/Group Membership 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/ | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Remove a specific Stripe JavaScript library from loading on the checkout page. | |
* This recipe removes the library loaded by the Charitable plugin. | |
* | |
* 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/ | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sale Type: WooCommerce | |
* Sale Template: Neon | |
*/ | |
// Pre-Sale Content: | |
<h1>The Illuminated Sale Coming Soon!</h1> | |
<h4>Get ready for the most lit-up sale ever! Coming October 2055!</h4> | |
<p><a href="#">Learn More</a></p> |