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_filter( 'woocommerce_allegro_test_mode_option', '__return_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
add_filter( 'woocommerce_dpd_uk_get_request_always_visible', '__return_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 | |
add_filter( 'flexible_shipping_prices_include_tax', 'wpdesk_flexible_shipping_prices_include_tax' ); | |
function wpdesk_flexible_shipping_prices_include_tax() { | |
return 'yes' === get_option( 'woocommerce_prices_include_tax', 'no' ); | |
} |
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_filter( 'woocommerce_get_cart_page_permalink', 'studiowp_woocommerce_get_cart_page_permalink' ); | |
function studiowp_woocommerce_get_cart_page_permalink( $permalink ) { | |
return $permalink . '#my_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 | |
class studiowp_add_products_to_cart { | |
private $products = array(); | |
private $id = ''; | |
public function __construct( $id = 1, $products = array() ) { | |
$this->products = $products; | |
$this->id = $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 | |
add_action( 'woocommerce_email_after_order_table', 'studiowp_woocommerce_email_after_order_table_customer_note', 10, 4 ); | |
function studiowp_woocommerce_email_after_order_table_customer_note( $order, $sent_to_admin, $plain_text, $email ) { | |
if ( $sent_to_admin ) { | |
if ( $order->get_customer_note() != '' ) { | |
echo sprintf( '<h2>%s</h2>', __( 'Customer note', 'woocommerce' ) ); | |
echo sprintf( '<p><strong>%s</strong></p>', $order->get_customer_note() ); | |
} | |
} |
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_filter( 'wp_get_attachment_url', 'grola_wp_get_attachment_url', 10, 2 ); | |
function grola_wp_get_attachment_url( $url, $post_id ) { | |
return add_query_arg( 'p2', $post_id, add_query_arg( 'p', $post_id+1, $url ) ); | |
} |
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 | |
class studiowp_product_category_on_stock_change { | |
protected $category_id; | |
protected $stock_level; | |
protected $variable_product_id = 0; | |
protected $variable_product_add_category = false; |
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 | |
class studiowp_single_product_price_suffix { | |
private $suffix; | |
private $category_id; | |
/** | |
* studiowp_single_product_price_suffix constructor. | |
* |
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 | |
class studiowp_single_product_price_suffix { | |
private $suffix; | |
private $category_id; | |
/** | |
* studiowp_single_product_price_suffix constructor. | |
* |