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 | |
/** | |
* Moves the SST Tax Exempt form to after the customer billing details. | |
* Place in your child theme's functions.php file or in a plugin. | |
*/ | |
function sst_move_tax_exempt_form() { | |
global $wp_filter; | |
if ( ! isset( $wp_filter['woocommerce_checkout_after_customer_details'] ) ) { |
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 | |
/** | |
* Filters the `shippo_labels` meta value to remove refunded labels. | |
* Workaround for label purchase limit not being increased after a | |
* label is refunded. | |
* | |
* @param array|string $labels Shippo labels printed for order. | |
* | |
* @return array Labels with refunded labels removed. |
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 | |
/** | |
* Filters the default value of the marketship_shippo_usps_settings | |
* user meta key to enable flat rate services by default. | |
* | |
* @param mixed $value Meta value. | |
* @param int $user_id User ID. | |
* @param string $meta_key Meta key. | |
* @param bool $single Whether to return a single value. |
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 | |
/** | |
* Filters the default value for the `shippo_boxes` user meta key. | |
* | |
* @param mixed $value Meta value. | |
* @param int $user_id User ID. | |
* @param string $meta_key Meta key. | |
* @param bool $single Whether to return a single value. | |
* |
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 | |
/** | |
* Changes the usable box volume for MarketShip's packing algorithm to 100%. | |
* | |
* @param float $usable_volume Usable volume for packing. | |
* @param float $total_volume Total box volume. | |
* | |
* @return float Updated usable volume. | |
*/ |
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 | |
/** | |
* Filters the MarketShip settings to forcibly disable some shipping methods. | |
* | |
* @param array $settings MarketShip settings. | |
* | |
* @return array | |
*/ | |
function marketship_force_disable_shipping_methods( $settings ) { |
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 | |
/** | |
* Makes it possible to override the TRS table list template by copying | |
* it to `table-rate-shipping/shipping-table-list.php` in a theme. | |
* | |
* @param string $template_path Path to TRS table list template. | |
* | |
* @return string Template path. | |
*/ |
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 | |
/** | |
* Shipping method settings template. | |
* | |
* Overridden to output custom help text for Free Shipping. | |
* | |
* @global MarketShip_Shipping_Method $shipping_method Shipping method instance. | |
* | |
* @author Brett Porcelli <brett@thepluginpros.com> | |
* @package MarketShip |
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 | |
/** | |
* Changes the help text for Free Shipping. | |
* This is displayed in the Dokan dashboard at the top of the method | |
* settings page. | |
*/ | |
function marketship_change_free_shipping_help_text() { | |
return __( 'My free shipping help text' ); | |
} |
NewerOlder