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
[ | |
{ | |
"id": "first-test-message", // required | |
"datePublished": "2020-07-07", // required, | |
"expirationDate": "2020-08-01", // optional | |
"subject": "Hey!", // required | |
"body": "This is a message from the cool folks at SkyVerge", // required | |
"ctaButton": "View plugin", // optional | |
"ctaHref": "https://woocommerce.com/product/plugin-slug", // required only if ctaButton included | |
"visibility": { // all optional |
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: User Switching Notice for WooCommerce | |
* Plugin URI: https://gist.github.com/bekarice/7785293fb60d7d5297a245b1c1271272 | |
* Description: Adds a frontend notice to switch back to your user on WooCommerce sites with User Switching. | |
* Author: SkyVerge | |
* Author URI: http://www.skyverge.com/ | |
* Version: 1.0.0 | |
* Text Domain: user-switching-notice-for-woocommerce | |
* |
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 // only copy if needed! | |
/** | |
* Adds a link to the WooCommerce thank you page in order emails. | |
* | |
* @param \WC_Order $order the order object | |
*/ | |
function sv_wc_add_email_order_page_link( $order ) { |
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 // only copy if needed! | |
/** | |
* Adds a link to view the "order received" page to the orders admin. | |
* REQUIRES WC 3.0+ | |
* | |
* @param \WC_Order $order the current order object | |
*/ | |
function sv_wc_order_received_page_admin_link( $order ) { |
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: Filter WooCommerce Orders by Payment Method | |
* Plugin URI: http://skyverge.com/ | |
* Description: Filters WooCommerce orders by the payment method used :) | |
* Author: SkyVerge | |
* Author URI: http://www.skyverge.com/ | |
* Version: 1.0.0 | |
* Text Domain: wc-filter-orders-by-payment | |
* |
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: Background Processing Test for Import / Export | |
* Plugin URI: http://skyverge.com/ | |
* Description: Tests whether or not the server can connect to itself to process jobs asynchronously. | |
* Author: SkyVerge | |
* Author URI: http://www.skyverge.com/ | |
* Version: 1.0.0 | |
* Text Domain: sv-background | |
* |
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 // only copy if needed | |
/** | |
* Forces orders be marked as "on hold | |
*/ | |
function sv_wc_cod_order_status( $status ) { | |
return 'on-hold'; | |
} | |
add_filter( 'woocommerce_cod_process_payment_order_status', 'sv_wc_cod_order_status', 15 ); |
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 // only copy if needed | |
/** | |
* Adds a prefix to the existing WooCommerce order number. | |
* | |
* @param int $order_id the order ID | |
* @param \WC_Order $order the order object | |
* @return string the updated order number | |
*/ | |
function sv_wc_add_order_number_prefix( $order_id, $order ) { |
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 // Don't copy me unless you need to! | |
/** | |
* Changes the coupon label output from Coupon: {code} to Coupon: {description} | |
* | |
* @param string $label the cart / checkout label | |
* @param \WC_Coupon $coupon coupon object | |
* @return string updated label | |
*/ | |
function swwp_change_coupon_preview( $label, $coupon ) { |
NewerOlder