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 | |
/** | |
* Product Status Utility. | |
*/ | |
function lm_generate_and_update_products(){ | |
if ( !isset($_GET['xx-products'] ) ) | |
return; |
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 | |
/** | |
* Outputs A section | |
* @param array $atts. The shortcode params. | |
*/ | |
function crb_output_content_section ( $atts = [] ) { | |
$atts = shortcode_atts( array( | |
'page' => 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 | |
/** | |
* Updates the currently stored Spam IPS with new ones. | |
* | |
* @param array $new_ips The new ips to add. | |
*/ | |
function dcrcoffee_update_spam_ips( $new_ips = [] ) { |
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 | |
global $crispx_timer; | |
//Start Timer XDebug | |
$time_start = microtime(true); | |
/** | |
Run All Code Here |
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
.product.autoship-active div.autoship-type.autoship-yes{ | |
border: 1px solid #9bc99b; | |
background-color: #9bc99b38; | |
border-radius: 5px; | |
} | |
.product.autoship-not-active div.autoship-type.autoship-no{ | |
border: 1px solid #9bc99b; | |
background-color: #9bc99b38; | |
border-radius: 5px; |
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 | |
/** | |
* Displays the Scheduled Order Display Schedule form | |
* | |
* @param array $autoship_order The autoship order array. | |
* @param int $customer_id The woocommerce customer id. | |
* @param int $autoship_customer_id The autoship customer id. | |
* |
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 | |
/** | |
* Tracks data sent to Qpilot from the Product Upsert | |
* | |
* @param array $args The Product & Call Data Upserted | |
*/ | |
function xx_track_product_upsert_data( $args ){ | |
xx_debug( '============ Product Upsert API Call Made ===============', 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 | |
/** | |
* Catches a custom get link, adds the item and sets the temp schedule | |
*/ | |
function xx_auto_add_item(){ | |
if ( empty( $product_id = filter_input( INPUT_GET, 'pid', FILTER_SANITIZE_NUMBER_INT ) ) ) | |
return; |
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
/** | |
* Inserts Custom JQuery Code to Force Save Payment Information on Custom Checkout Pages | |
* Only gets included if the current order includes one or more autoship items | |
* @see autoship_cart_has_valid_autoship_items() | |
*/ | |
function xx_force_save_card_for_autoship_orders_w_checkoutwc() { | |
if ( !autoship_cart_has_valid_autoship_items() ) | |
return; |
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
/** | |
* Gather the Next Occurrence dates for all Scheduled orders created at checkout | |
* and save those dates to the original WC Checkout Order | |
* | |
* @param array $scheduled_order_ids The created Scheduled Order IDs | |
* @param int $order_id The WC Order ID | |
* @param array $scheduled_orders The created Scheduled Orders in stdClass objects | |
*/ | |
function xx_track_scheduled_order_next_occurrences_at_checkout( $scheduled_order_ids, $order_id, $scheduled_orders ){ |
NewerOlder