View wcdpp_apply_part_payment_before_tax.php
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 | |
/** | |
* Apply part payment before tax | |
*/ | |
add_filter( 'wcdpp_apply_part_payment_before_tax', '__return_true' ); |
View wcfad_role_pricing_rules.php
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 | |
/** | |
* Filter global role-based discounts | |
*/ | |
function prefix_role_pricing_rules( $rules, $product=false ) { | |
if( ! $product ) { | |
return $rules; | |
} | |
View prefix_get_bookings_ending.php
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 | |
/** | |
* Get all bookings with an end date in a specified number of days time | |
*/ | |
function prefix_get_bookings_ending() { | |
// How many days in advance should we send the email? | |
$days = 3; | |
$date = date( 'Y-m-d', strtotime( '+' . absint( $days ) . 'days' ) ); | |
error_log( $date ); |
View woocommerce_product_tabs.php
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 | |
/** | |
* Rename product data tabs | |
*/ | |
function woo_rename_tabs( $tabs ) { | |
$tabs['additional_information']['title'] = __( 'Product Data' ); | |
return $tabs; | |
} | |
add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 ); |
View woocommerce_product_tabs.php
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 | |
/** | |
* Remove product data tabs | |
*/ | |
function woo_remove_product_tabs( $tabs ) { | |
unset( $tabs['additional_information'] ); | |
return $tabs; | |
} | |
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); |
View hide-field.css
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
.pewc-field-104 { | |
display: none; | |
} |
View pewc_enable_minimum_price_option.php
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 | |
/** | |
* Display the 'Force minimum price' setting | |
* This setting will be deprecated in a future version | |
* Please use https://pluginrepublic.com/wordpress-plugins/woocommerce-minimum-maximum-quantity-and-order/ instead | |
*/ | |
add_filter( 'pewc_enable_minimum_price_option', '__return_true' ); |
View bfwc_discount_type.php
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 | |
/** | |
* Apply fixed discounts in Bookings for WooCommerce | |
*/ | |
function prefix_discount_type( $type, $product_id ) { | |
return 'fixed'; | |
} | |
add_filter( 'bfwc_discount_type', 'prefix_discount_type', 10, 2 ); |
View wcfad_validate_bulk_rule_taxonomy.php
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 | |
/** | |
* Filter bulk discount rules by taxonomy instead of product category | |
*/ | |
function prefix_validate_bulk_rule_taxonomy( $tax, $rule, $rule_id ) { | |
$tax = 'product_brand'; | |
return $tax; | |
} |
View pewc_filter_exact_children_validation_notice.php
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 | |
/** | |
* Filter exact children validation notice | |
*/ | |
function prefix_exact_children_validation_notice( $notice, $label, $min_products ) { | |
$notice = sprintf( | |
__( '%s requires you to choose %s products', 'pewc' ), | |
esc_html( $label ), | |
$min_products |
NewerOlder