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 | |
/* | |
* Add this code to your functions.php file | |
*/ | |
add_action( 'woocommerce_after_shop_loop_item_title', 'jck_custom_text', 15 ); | |
function jck_custom_text() { | |
the_field('your_field_key'); |
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 | |
add_action( 'init', 'iconic_remove_x_theme_thumbnails' ); | |
function iconic_remove_x_theme_thumbnails() { | |
remove_action( 'woocommerce_before_shop_loop_item_title', 'x_woocommerce_shop_product_thumbnails', 10 ); | |
} |
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 | |
/** | |
* Output engraving field. | |
*/ | |
function iconic_output_engraving_field() { | |
global $product; | |
if ( $product->get_id() !== 1741 ) { | |
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 | |
/** | |
* Modify shop single sizes. | |
* | |
* @param array $size | |
* | |
* @return array | |
*/ | |
function iconic_modifiy_shop_single( $size ) { |
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 redirect on archive pages. | |
* | |
* @param string $redirect | |
* | |
* @return string | |
*/ | |
function iconic_add_to_cart_form_action( $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
/** | |
* Get customer completed orders orders by email. | |
* | |
* @param string $email | |
* | |
* @return array | |
*/ | |
function iconic_get_customer_completed_orders_by_email( $email ) { | |
$transient_name = sprintf( 'iconic_orders_by_email_%s', strtolower( esc_attr( $email ) ) ); |
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 | |
/** | |
* Show SKU on products when searching. | |
*/ | |
function iconic_show_sku_search() { | |
if ( ! is_search() ) { | |
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
/** | |
* 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(); |
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
function iconic_disable_qv_images() { | |
global $jckqv; | |
if ( empty( $jckqv ) ) { | |
return; | |
} | |
add_action( 'jck_qv_images', array( $jckqv, 'modal_part_images' ), 10, 3 ); | |
} |
OlderNewer