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
// Change the output of multiple comments text in Post header meta or Post footer meta | |
add_filter( 'ntp_multiple_comment_text', 'themename_multiple_comment_text' ); | |
function themename_multiple_comment_text() { | |
return 'Comments: % Comments'; | |
} |
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 | |
/** | |
* WooCommerce | |
* -------------- | |
* | |
* Display cart total weight on the cart page | |
* | |
*/ | |
add_action('woocommerce_cart_collaterals', 'myprefix_cart_extra_info'); |
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 | |
/** | |
* WooCommerce | |
* -------------------------- | |
* | |
* Remove related products | |
* | |
* Clear the query arguments for related products so none show. | |
* | |
*/ |
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 | |
/** | |
* WooCommerce | |
* -------------- | |
* | |
* Hide all prices in your store. | |
* | |
* Can be useful when using WooCommerce as a quote tool. | |
* | |
*/ |
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 | |
/** | |
* WooCommerce - Klarna | |
* -------------- | |
* | |
* Add input field for Billing Phone to Klarna (Invoice) Payment gateway Description area. | |
* | |
* Can be useful if the regular WC checkout form is stripped down since Klarna require a Phone number. | |
* | |
*/ |
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
#site-title { | |
width: 900px; | |
} | |
#header-widget { | |
width: 0px; | |
} |
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
/** | |
* Add the DIBS Transaction ID to order emails | |
**/ | |
add_filter('woocommerce_email_order_meta_keys', 'dibs_woocommerce_email_order_meta_keys'); | |
function dibs_woocommerce_email_order_meta_keys( $keys ) { | |
$keys['DIBS Transaction ID'] = 'dibs_transaction_no'; | |
return $keys; | |
} |
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
/** | |
* WooCommerce - DIBS payment gateway | |
* Filter the paytype sent to DIBS | |
* | |
**/ | |
add_filter('woocommerce_dibs_paytypes', 'myprefix_dibs_paytypes'); | |
function myprefix_dibs_paytypes( $paytypes ) { | |
// Multiple paytypes are added comma separated. |
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 | |
/** | |
* WooCommerce - Double.net Tracking code | |
* | |
**/ | |
add_action( 'woocommerce_thankyou', 'my_custom_tracking' ); | |
function my_custom_tracking( $order_id ) { | |
$order = new WC_Order( $order_id ); | |
$reference = ltrim( $order->get_order_number(), '#'); |
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 | |
/** | |
* WooCommerce - Payson payment gateway | |
* Change the Payson Direct icon in checkout | |
* | |
**/ | |
function myprefix_change_payson_direct_icon($logourl) { | |
return get_stylesheet_directory_uri(). '/images/my-payson-icon.png'; | |
} | |
add_filter('payson_direct_icon', 'myprefix_change_payson_direct_icon'); |
OlderNewer