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 | |
/** | |
* Plugin Name: Line item product type in Orders REST API response. | |
* Plugin URI: | |
* Description: Display the product type in the line items array returned by WC REST API Orders requests. | |
* Author: Prospress Inc, Matt Allan | |
* Author URI: https://prospress.com/ | |
* Version: 1.0 | |
* | |
* This program is free software: you can redistribute it and/or modify |
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
<!DOCTYPE html> | |
<head> | |
<title>Pusher Test</title> | |
<script src="https://js.pusher.com/3.2/pusher.min.js"></script> | |
<script> | |
// Enable pusher logging - don't include this in production | |
Pusher.logToConsole = true; | |
var pusher = new Pusher('8ffa40e2d51c6786802e'); |
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 | |
/** | |
* Estimate the billing periods between two timestamps | |
* | |
* @since 1.0 | |
* @param int $from_timestamp | |
* @param int $to_timestamp | |
* @param string $billing_period | |
* @param string $billing_interval |
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 | |
// inside `webdriver->create()` | |
$options = new \Facebook\WebDriver\Chrome\ChromeOptions(); | |
$options->addArguments( [ 'headless' ] ); | |
$capabilities->setCapability( \Facebook\WebDriver\Chrome\ChromeOptions::CAPABILITY, $options ); |
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 | |
/** | |
* Plugin Name: Woo Subscriptions Gifting - Recipient Address Update Fix | |
* Description: When changing a subscription's address that you have gifted, only update the shipping address. Don't update the gifter's address. | |
* Author: Matt Allan | |
* Author URI: https://woocommerce.com/ | |
*/ | |
function wcsg_update_gifted_subscription_shipping_address() { | |
global $wp; |
OlderNewer