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: Enable WooCommerce Onboarding Split Test | |
Description: Puts the site into the test group for WooCommerce Onboarding split testing. | |
Version: 1.0.0 | |
Author: Automattic | |
License: GPL2 | |
*/ | |
function woocommerce_admin_set_test_group() { | |
return 'b'; |
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: Send Automatic Update Debug Emails | |
* Description: Sends automatic Update Debug Emails | |
* Version: 0.1 | |
*/ | |
add_filter( 'automatic_updates_send_debug_email', '__return_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
<?php | |
// Force an auto update | |
require( dirname(__FILE__) . '/wp-load.php' ); | |
delete_option( 'auto_updater.lock' ); | |
wp_maybe_auto_update(); |
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 | |
/** | |
* Legacy Customers API Tests | |
* @package WooCommerce\Tests\API | |
*/ | |
class WC_Tests_API_Legacy_Customers extends WC_API_Unit_Test_Case { | |
/** @var WC_API_Customers instance */ | |
protected $endpoint; |
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 | |
// Get items from all refunds | |
$refunds = array(); | |
$refund_items = get_posts( array( | |
'post_type' => 'shop_order_refund', | |
'posts_per_page' => -1, | |
'post_status' => 'any', | |
'fields' => 'ids' | |
) ); |
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: Cancel Unpaid Bookings | |
* Author: WooThemes | |
* Description: Allows booking orders to be canceled by the cancel unpaid orders cron job. | |
*/ | |
// woocommerce-cancel-unpaid-bookings.php | |
function woocommerce_cancel_unpaid_booking_orders_from_admin( $return, $order ) { |