This file contains hidden or 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
add_filter( 'woocommerce_product_tabs', 'woo_rename_vendor_tab', 20 ); | |
function woo_rename_vendor_tab( $tabs ) { | |
if ( isset( $tabs['vendor'] ) ) { | |
$tabs['vendor']['title'] = __( 'Your Label Here' ); | |
} | |
return $tabs; | |
} |
This file contains hidden or 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
/* Date */ | |
#wc-bookings-booking-form .wc-bookings-date-picker span.label { | |
color: #FF0000; | |
} | |
/* Month / Year */ | |
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker .ui-datepicker-title { | |
color: #FF0000; | |
} |
This file contains hidden or 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
/** | |
* Cart link | |
*/ | |
function woo_wc_cart_link() { | |
?> | |
<a class="cart-contents" href="<?php echo WC()->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'woothemes'); ?>"><?php echo WC()->cart->get_cart_subtotal(); ?> <span class="count"><?php echo sprintf( _n('%d item', '%d items', WC()->cart->get_cart_contents_count(), 'woothemes' ), WC()->cart->get_cart_contents_count() );?></span></a> | |
<?php | |
} |
This file contains hidden or 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
add_action( 'woocommerce_checkout_order_processed', 'log_ninja_forms_error' ); | |
function log_ninja_forms_error() { | |
$log = new WC_Logger(); | |
$log->add( 'ninja-test', $_SERVER['HTTP_USER_AGENT'] ); | |
} |
This file contains hidden or 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
add_action( 'woocommerce_checkout_order_processed', 'log_ninja_forms_error' ); | |
function log_ninja_forms_error( $order_id ) { | |
$log = new WC_Logger(); | |
$log->add( 'ninja-test', 'Order #' . $order_id . ' - ' . $_SERVER['HTTP_USER_AGENT'] ); | |
} |
This file contains hidden or 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
.site-title a, .header-left .site-description, .main-header a, .main-header a:hover { | |
color: #fff; | |
} | |
.navbar-trigger .icon-bar, .navbar-trigger:hover .icon-bar { | |
background-color: #fff; | |
} |
This file contains hidden or 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
#featured-content .entry-author { | |
display: none; | |
} | |
.post.type-post .entry-author { | |
display: none; | |
} |
This file contains hidden or 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 echo $order->email_order_items_table( array( | |
'show_sku' => $sent_to_admin, | |
'show_image' => false, | |
'image_size' => array( 32, 32 ), | |
'plain_text' => $plain_text, | |
'sent_to_admin' => $sent_to_admin | |
) ); ?> |
This file contains hidden or 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
add_action( 'wp_enqueue_scripts', 'my_strength_meter_localize_script' ); | |
function my_strength_meter_localize_script() { | |
wp_localize_script( 'password-strength-meter', 'pwsL10n', array( | |
'empty' => __( 'But... it\'s empty!', 'theme-domain' ), | |
'short' => __( 'Too short!', 'theme-domain' ), | |
'bad' => __( 'Not even close!', 'theme-domain' ), | |
'good' => __( 'You are getting closer...', 'theme-domain' ), | |
'strong' => __( 'Now, that\'s a password!', 'theme-domain' ), | |
'mismatch' => __( 'They are completely different, come on!', 'theme-domain' ) | |
) ); |
This file contains hidden or 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
/** | |
* Auto Complete all WooCommerce orders. | |
*/ | |
add_action( 'wc_custom_thankyou_successful', 'custom_woocommerce_auto_complete_order' ); | |
function custom_woocommerce_auto_complete_order( $order ) { | |
if ( ! $order ) { | |
return; | |
} | |
$order->update_status( 'completed' ); |