This file contains 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
if ( ! defined( 'WCS_DEBUG' ) ) { | |
define( 'WCS_DEBUG', true ); | |
} |
This file contains 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
******* strtotime() test run on Friday (2014-03-21 22:28:50-UTC) ********** | |
---- testing day of week ---- | |
Wednesday = 2014-03-26 <-- the next Wednesday (not the last) | |
Wednesday next week = 2014-04-02 <-- interpretted as "the first Wednesday after one week from today" rather than "the next Wednesday" | |
Friday = 2014-03-21 <-- today! | |
Friday next week = 2014-03-28 <-- one week | |
---- testing day of month ---- | |
First day of March = 1970-01-01 <-- requires specific integer day (i.e. date( 't' ) ) |
This file contains 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 | |
/** | |
* Plugin Name: Stop WooCommerce Subscriptions Changing a User's Role | |
* Plugin URI: | |
* Description: | |
* Author: Brent Shepherd | |
* Author URI: | |
* Version: 1.0 | |
*/ |
This file contains 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 | |
/** | |
* Plugin Name: WooCommerce Subscriptions Disallow Subscription Actions | |
* Plugin URI: https://docs.woothemes.com/document/subscriptions/faq/#section-63 | |
* Description: Prevent core actions from being carried out on a subscription with the WooCommerce Subscriptions plugin. | |
* Author: Brent Shepherd | |
* Author URI: | |
* Version: 2.0 | |
*/ |
This file contains 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 | |
/** | |
* Plugin Name: WCS 1.4 Upgrade Fix | |
* Plugin URI: | |
* Description: Custom plugin to fix a database that fell out of sync with Subscriptions 1.4's database structure. | |
* Author: Brent Shepherd | |
* Author URI: | |
* Version: 1.0 | |
*/ |
This file contains 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 | |
/* | |
Plugin Name: WooCommerce Task Scheduler Tester | |
Plugin URI: | |
Description: A simple plugin to create and test scheduled tasks with the WC Scheduler | |
Author: | |
Author URI: | |
Version: 0.1 | |
*/ |
This file contains 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 | |
/** | |
* Plugin Name: WooCommerce Subscriptions Perpetual Download Access | |
* Description: Allow customers to download all files associated with a product to which they have purchased a subscription - even after their subscription has been cancelled or expired. | |
* Author: | |
* Author URI: | |
* Version: 1.0 | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by |
This file contains 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 | |
/** | |
* Plugin Name: Custom PayPal Digital Goods Start Date | |
* Description: Customise the subscription start date sent to PayPal when purchasing a subscription via the WooCommerce PayPal Digital Goods extension (version 2.4.1 or newer). | |
* Author: | |
* Author URI: | |
* Version: 1.0 | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by |
This file contains 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 | |
/** | |
* Plugin Name: WooCommerce Subscriptions Enable Search | |
* Description: Enable the subscription search and sort by next payment date features on large sites. <a href="http://docs.woothemes.com/document/subscriptions/faq/#section-60">Learn More</a>. | |
* Author: Brent Shepherd | |
* Version: 1.0 | |
* License: GPL v2 | |
*/ | |
add_filter( 'woocommerce_subscriptions_is_large_site', '__return_false' ); |