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 | |
/** | |
* Filter the list of active plugins for custom endpoint requests. | |
* | |
* @param array $active_plugins The list of active plugins. | |
* | |
* @return array The filtered list of active plugins. | |
*/ | |
function filter_active_plugins( $active_plugins ) { |
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 | |
/** | |
* Modify max length of first name field in WooCommerce. | |
* | |
* @param array $fields | |
* | |
* @return array | |
*/ | |
function flux_modify_fname_field_length( $fields ) { |
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
(function( $, document ) { | |
var orderable_switch_pricing = { | |
vars: { | |
'cycle_buttons': '.orderable-switch .kt-button', | |
'qty_buttons': '.orderable-qty .kt-button', | |
'active_toggle': 'kt-button--active', | |
'checkout_url': 'https://my.orderable.com/checkout/?wcf-default=', | |
'pricing': { | |
'annual': { | |
'1': { |
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
on: | |
pull_request: | |
branches: | |
- dev | |
types: [closed] | |
jobs: | |
update_changelog: | |
name: Update and Commit Changelog | |
runs-on: ubuntu-latest |
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 | |
/** | |
* Change variable product text. | |
* | |
* [link to article] | |
* | |
* @param string $button_text | |
* @param WC_Product $product | |
* |
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 | |
/** | |
* Change maximum delivery date. | |
* https://iconicwp.com/products/woocommerce-delivery-slots/?utm_source=Iconic&utm_medium=Gist&utm_campaign=max-selectable-date | |
* | |
* @param array $max | |
* | |
* @return array | |
*/ |
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 | |
/** | |
* Use parent's description. | |
*/ | |
function iconic_woocommerce_short_description( $description ) { | |
if ( ! is_archive() ) { | |
return $description; | |
} | |
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
function iconic_disable_qv_images() { | |
global $jckqv; | |
if ( empty( $jckqv ) ) { | |
return; | |
} | |
add_action( 'jck_qv_images', array( $jckqv, 'modal_part_images' ), 10, 3 ); | |
} |
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
function iconic_remove_admin_redirect() { | |
remove_action( 'admin_init', array( 'JCK_SFR_User', 'redirect_voters' ), 10 ); | |
} | |
add_action( 'init', 'iconic_remove_admin_redirect' ); |
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
/** | |
* Modify delivery slots labels. | |
* | |
* @param array $labels | |
* @param null|WC_Order $order | |
* | |
* @return array | |
*/ | |
function iconic_modify_delivery_slots_labels( $labels, $order ) { | |
$chosen_shipping = $order ? iconic_get_order_shipping_method( $order ) : iconic_get_selected_shipping_method(); |
NewerOlder