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 | |
interface SettingsInterface { | |
public function get_setting( $key ); | |
public function set_setting( $key, $value ); |
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 include this if needed | |
add_filter( 'wc_google_analytics_pro_script_attributes', function( $attributes ) { | |
$attributes['data-wpfc-render'] = 'false'; | |
return $attributes; | |
} ); |
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: SkyVerge WordPress Plugin Admin Tester | |
* Plugin URI: # | |
* Description: Test the SkyVerge WordPress Plugin Admin | |
* Author: SkyVerge | |
* Author URI: https://skyverge.com | |
* Version: 1.0.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 // only include this if needed | |
add_action( 'wc_payment_gateway_elavon_converge_credit_card_add_transaction_data', function( $order, $response ) { | |
if ( $order instanceof \WC_Order && $response instanceof \WC_Elavon_Converge_API_Credit_Card_Transaction_Response ) { | |
$message = sprintf( | |
'Elavon Fraud Results:<br />AVS Result: %s<br />CSC Result: %s', | |
esc_html( $response->get_avs_result() ), | |
esc_html( $response->get_csc_result() ) |
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 this if needed! | |
add_filter( 'wc_memberships_my_account_redirect_to_single_membership', '__return_false' ); |
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 this line if needed | |
/** | |
* Adds Order Delivery date to the "Shipping Method" section of invoices and packing lists | |
* 'Show shipping method' should be enabled for invoices! | |
* | |
* @param string $shipping the shipping method text | |
* @param string $document_type the type of document being viewed | |
* @param \WC_Order $order the order object the document is for | |
* @return string the updated shipping string | |
*/ |
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 include this if needed | |
/** | |
* Sends an SMS to the customer whenever a new customer note is added to an order. | |
* | |
* Customer notes usually trigger an email if enabled. | |
*/ | |
add_action( 'woocommerce_new_customer_note', function( $args ) { | |
if ( ! class_exists( 'WC_Twilio_SMS_Notification' ) || empty( $args['order_id'] ) || empty( $args['customer_note'] ) ) { |
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 this line if needed | |
add_action( 'wp_enqueue_scripts', function() { | |
if ( ! is_user_logged_in() ) { | |
wp_dequeue_script( 'edd-jilt' ); | |
} | |
}, 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 | |
class WooCommerce { | |
public $settings; | |
public function init() { | |
// all that other fun init stuff | |
NewerOlder