includes/abstracts/abstract-ywdpd-data.php
This filter change the value of an object property
Paramsmixed $value The value to filter.
YWDPD_Data $object The current object.
Returnmixed
includes/abstracts/abstract-ywdpd-price-rule.php
With this filter is possible exclude or not a user
Paramsbool $is_in_exclusion The value to filter.
YWDPD_Price_Rule $object The current object.
Returnbool
With this filter is possible validate a rule for a user
Paramsbool $value The value to filter.
string $rule_type The type of the rule. everyone|customers_list|role_list
YWDPD_Price_Rule $object The current object.
Returnbool
With this filter is possible validate a rule for a user
Paramsbool $value The value to filter.
YWDPD_Price_Rule $object The current object.
Returnbool
With this filter is possible set if a rule can be applied with other rules
Paramsbool $value The value to filter.
YWDPD_Price_Rule $object The current object.
Returnbool
With this filter is possible set if a rule can be applied with on-sale products
Paramsbool $value The value to filter.
YWDPD_Price_Rule $object The current object.
Returnbool
With this filter is possible set if a rule can be applied with other coupons
Paramsbool $value The value to filter.
YWDPD_Price_Rule $object The current object.
Returnbool
With this filter is possible set if a rule is valid to apply
Paramsbool $is_valid The value to filter.
string $type The valid type.
WC_Product $product The product.
YWDPD_Price_Rule $object The current object.
Returnbool
With this filter is possible set if a product is excluded in the rule
Paramsbool $is_excluded The value to filter.
string $type The valid type.
WC_Product $product The product.
YWDPD_Price_Rule $object The current object.
Returnbool
With this filter is possible set if a product is excluded in the rule
Paramsbool $is_excluded The value to filter.
string $type The valid type.
WC_Product $product The product.
YWDPD_Price_Rule $object The current object.
Returnbool
With this filter is possible not allow variation checks
Paramsbool $with_other_variation The value to filter.
YWDPD_Price_Rule $object The current object.
WC_Product $product The product.
bool $check_also_variation If needed check in the variations.
Returnbool
Check if the product is in the list
Paramsbool $is_in_list The value to filter.
WC_Product $product The product.
array $list_ids The ids list.
string $taxonomy_to_check The taxonomy: product_cat, product_tag,etc.
YWDPD_Price_Rule $object The current object.
Returnbool
Rule is enabled for adjustment
Paramsbool $value The value to filter.
YWDPD_Price_Rule $object The current object.
Returnbool
Rule is valid to adjustment
Paramsbool $is_valid The value to filter.
string $type The type of check. ( all_products|specific_products|specific_categories|specific_tag )
YWDPD_Price_Rule $object The current object.
Returnbool
Change the comulative quantity
Paramsint $qty_in The value to filter.
string $type The type of check. ( all_products|specific_products|specific_categories|specific_tag )
YWDPD_Price_Rule $object The current object.
Returnint
Filter the price to discount
Paramsfloat $default_price The value to filter.
array $cart_item The cart item.
string $cart_item_key The cart item key.
YWDPD_Price_Rule $object The current object.
Returnfloat
Filter the price to discount
Paramsbool $save_discount_in_cart The value to filter.
float $discounted_price The discounted price.
float $original_price The original price.
Returnbool
includes/abstracts/abstract-ywdpd-rule.php
With this filter is possible change the enable status of a rule
Paramsbool $value The value to filter.
YWDPD_Rule $object The current object.
Returnbool
With this filter is possible schedule the rule
Paramsbool $value The value to filter.
array $schedule The schedule configuration.
YWDPD_Rule $object The current object.
Returnbool
includes/admin/custom-fields/qty-range-discount.php
Allow to change the input number pattern
Params
string $pattern The pattern.
Returnstring
includes/admin/metaboxes/dynamic-discount-metaboxes.php
Allow change the meta box options
Params
array $options The options
Returnarray
includes/class-yith-wc-dynamic-cart-rules-manager.php
Avoid to apply different carts rules at the same time
Params
bool
Is possible change the discount amount. Useful for multicurrency plugins
Params
float $discount_amount the discount amount.
Returnfloat
Is possible change the coupon code
Params
string $coupon_code the coupon code.
Returnstring
Is possible change the coupon code
Params
string $coupon_code the coupon code.
Returnstring
Is possible change the coupon label
Params
string $coupon_label the coupon label.
Returnstring
includes/class-yith-wc-dynamic-exclusion-manager.php
The product is in the exclusion list or not
Paramsbool $is_in_exclusion the coupon label.
WC_Product $product The product.
Returnstring
The product ids that are in exclusion list
Params
array $product_ids the ids
Returnarray
The product tag ids that are in exclusion list
Params
array $product_tag_ids the ids
Returnarray
The product category ids that are in exclusion list
Params
array $product_category_ids the ids
Returnarray
includes/class-yith-wc-dynamic-price-rules-manager.php
Allow to show or hide the remove link for dynamic products
Paramsbool $can_hide_link Hide or not the link.
array $cart_item The cart item.
includes/class-yith-wc-dynamic-pricing-discounts.php
Filter the locale
Paramsstring $locale the locale.
string $text_domain The text domain.
Returnstring
Change the day ago to delete older coupons
Params
int $day_ago The day ago.
Returnint
includes/class-yith-wc-dynamic-pricing-gift-product.php
Params
bool $show Is true if the current page is the cart page.
Returnbool
includes/class-yith-ywdpd-counter.php
Skip the cart check
Params
bool $skip Skip or not.
Returnbool
Process the cart item check
Paramsbool $process Process item or not.
array $cart_item The cart item.
Returnbool
Set the original product price
Paramsfloat $price_to_restore The price.
array $cart_item The cart item.
string $cart_item_key The cart item key.
Returnfloat
Allow to count the item
Paramsbool $can_count If the item can count.
array $cart_item If the item .
bool $cart_item_key If the item key.
Returnbool
Add custom taxonomy
Params
array $custom_taxonomies The custom taxonomies.
Returnarray
includes/class-ywdpd-ajax.php
Change the base product price
Paramsfloat $price The price.
WC_Product $product The product.
Returnfloat
includes/class-ywdpd-assets.php
Params
string $reload yes or no.
Returnstring
Change table orientation
Params
string $template The template.
Returnstring
Change product css class
Params
string $class The product css class.
Returnstring
Change product price css class
Params
string $class The product price css class.
Returnstring
Change product qty css class
Params
string $class The product qty css class.
Returnstring
Change product variation form css class
Params
string $class The product variation form css class.
Returnstring
Show min quantity in the table
Params
bool $show_min Show the min or not.
Returnbool
Can update prices via ajax
Params
string $can_update Yes or no.
Returnstring
Can show the table on variable product
Params
string $can_show Yes or no.
Returnstring
Can add args for the script
Params
array $script_args The args.
Returnarray
includes/class-ywdpd-frontend.php
Can calculate the dynamic price for the product
Paramsbool $can_calculate True or false.
WC_Product $product The product.
Returnbool
Change the base product price
Paramsfloat $price The price.
WC_Product $product The product.
Returnfloat
Return the price html
Paramsstring $price_html price html.
float $old_price The old price.
float $new_price The new price.
WC_Product $product The product.
Returnstring
Return the variable regular price html
Paramsstring $price_html price html.
float $min The min price.
float $max The max price.
WC_Product $product The product.
Returnstring
Return the variable dynamic price html
Paramsstring $price_html price html.
float $min The min price.
float $max The max price.
WC_Product $product The product.
Returnstring
Return the variable price html
Paramsstring $price_html price html.
float $min_price The min price.
float $max_price The max price.
float $min_dynamic_price The min dynamic price.
float $max_dynamic_price The max dynamic price.
WC_Product $product The product.
Returnstring
The price rule is valid in cart or not
Paramsbool $is_valid True or false.
YWDPD_Quantity_Table|YWDPD_Discount_Whole|YWDPD_Category_Discount $price_rule The rule.
WC_Product $product The product.
Returnbool
Change the base product price
Paramsfloat $price The price.
WC_Product $product The product.
Returnfloat
Change the base product price
Paramsfloat $price The price.
WC_Product $product The product.
Returnfloat
Return a custom hook to show the table
Params
array $custom_hook The custom hook.
Returnarray
Change the original price in cart
Paramsfloat $price the price.
array $cart_item The cart item.
Returnfloat
Change the dynamic price
Paramsfloat $price the price.
array $cart_item The cart item.
Returnfloat
Show the sale price format html
Paramsbool $show Show or not.
float $original_price The original price.
float $new_price The new price.
float $discounted_price The discounted price.
array $cart_item The cart item.
Returnfloat
Replace the cart item price
Paramsstring $price_html The price html.
float $new_price The new price.
array $cart_item The cart item.
string $cart_item_key The cart item key.
Returnstring
Change the original price in cart
Paramsfloat $price the price.
array $cart_item The cart item.
Returnfloat
Change the Special offer name
Params
string $rule_name the price.
Returnstring
Change the rule name
Params
string $rule_name the price.
Returnstring
includes/class-ywdpd-shortcodes.php
Show the quantity table in the product
Paramsbool $show Show or not.
WC_Product $product The product.
Returnbool
Show the notice in the product
Paramsbool $show Show or not.
WC_Product $product The product.
Returnbool
includes/class-ywdpd-utils.php
Change the base product price
Paramsfloat $price The price.
WC_Product $product The product.
Returnfloat
Change the base product price
Paramsfloat $price The price.
WC_Product $product The product.
Returnfloat
Change the base product price
Paramsfloat $price The price.
WC_Product $product The product.
Returnfloat
Change the table header
Paramsstring $qty_html the header.
int $min_qty the min qty.
int $max_qty the max qty.
array $qty_rule the quantity rule.
Returnstring
Paramsfloat $price_to_display the price.
WC_Product $product the product.
float $price the base price.
Returnfloat
Paramsfloat $price_to_display the price.
WC_Product $product the product.
float $price the base price.
Returnfloat
Paramsbool $can_use_regular_price Is possible use the regular price.
WC_Product $product the product.
Returnbool
Change the decimals rounding in percentage discount calculation
Params
int $decimals the number of decimals to round (default from wc_get_price_decimals function).
Change the percentage discount
Paramsfloat $percentage the percentage discount.
float $discounted_price the discounted price.
float $old_price the old price.
Returnfloat
Change the percentage discount html
Paramsstring $percentage_discount_format the percentage discount html.
float $percentage the percentage value.
Returnstring
Change the percentage discount range html
Paramsstring $percentage_discount_format the percentage discount html.
float $percentage_from the min percentage value.
float $percentage_to the max percentage value.
Returnstring
Change the price html
Paramsstring $price_html the price html.
float $old_price the old price.
float $new_price the new price.
WC_Product $product the product.
Returnfloat
Add product ids to exclude
Paramsarray $product_ids the array.
YWDPD_Price_Rule $price_rule the price rule.
string $exclude_for the exclude condition.
Returnarray
Add product id to include
Paramsarray $product_ids the array.
YWDPD_Price_Rule $price_rule the price rule.
string $adjustment_for the condition.
Returnarray
Add product ids to exclude
Paramsarray $product_ids the array.
YWDPD_Price_Rule $price_rule the price rule.
string $exclude_for the exclude condition.
Returnarray
Add product id to include
Paramsarray $product_ids the array.
YWDPD_Price_Rule $price_rule the price rule.
string $rule_for the condition.
Returnarray
includes/dynamic-rules/cart-rules/class-ywdpd-cart-rule.php
Show the cart notice in the cart
Paramsbool $show Show or not.
YWDPD_Cart_Rule $cart_rule The cart rule.
Returnbool
Filter the discount amount percentage string
Params
float $discount_amount the discount amount.
Returnfloat
Is possible change the discount amount. Useful for multicurrency plugins
Params
float $discount_amount the discount amount.
Returnfloat
includes/dynamic-rules/price-rules/class-ywdpd-bogo.php
Set if rule is valid
Paramsbool $is_valid True or false.
string $type The condition type.
WC_Product $product The product.
YWDPD_BOGO $rule The rule.
Returnbool
Set if rule is enabled for adjustment
Paramsbool $is_enabled True or false.
YWDPD_BOGO $rule The rule.
Returnbool
includes/dynamic-rules/price-rules/class-ywdpd-category-discount.php
Set if show discount in loop
Paramsbool $value True or false.
YWDPD_Category_Discount $rule The rule.
Returnbool
Set product category ids
Paramsarray $product_ids The product ids.
YWDPD_Category_Discount $rule The rule.
Returnarray
Set if rule is valid
Paramsbool $value True or false.
string $type The type.
WC_Product $product the product.
YWDPD_Category_Discount $rule The rule.
Returnbool
Set the product category id
Params
int $category_id The category id.
Returnint
Is possible change the discount amount. Useful for multicurrency plugins
Params
float $discount_amount the discount amount.
Returnfloat
Is possible change the discount amount Useful for multicurrency plugins
Params
float $discount_amount the discount amount.
Returnfloat
Allow round totals
Params
bool $allow_round True or false.
Returnbool
includes/dynamic-rules/price-rules/class-ywdpd-discount-whole.php
Set if show discount in loop
Paramsbool $value True or false.
YWDPD_Discount_Whole $rule The rule.
Returnbool
Set if rule is valid
Paramsbool $value True or false.
string $type The type.
WC_Product $product the product.
YWDPD_Discount_Whole $rule The rule.
Returnbool
Is possible change the discount amount. Useful for multicurrency plugins
Params
float $discount_amount the discount amount.
Returnfloat
Is possible change the discount amount. Useful for multicurrency plugins
Params
float $discount_amount the discount amount.
Returnfloat
Allow round totals
Params
bool $allow_round True or false.
Returnbool
includes/dynamic-rules/price-rules/class-ywdpd-gift-products.php
Set minimum subtotal
Paramsfloat $min_subtotal The subtotal.
YWDPD_Gift_Products $rule The rule.
Returnfloat
Set if rule is valid
Paramsbool $value True or false.
string $type The type.
WC_Product $product the product.
YWDPD_Gift_Products $rule The rule.
Returnbool
Set cart subtotal
Paramsfloat $subtotal The subtotal.
YWDPD_Gift_Products $rule The rule.
Returnfloat
Rule is valid on cart
Paramsbool $is_valid Is valid or not.
YWDPD_Gift_Products $rule The rule.
Returnbool
Rule is enabled for adjustment
Paramsbool $value Is valid or not.
YWDPD_Gift_Products $rule The rule.
Returnbool
can the product be added to cart automatically
Paramsboolean $can_add .
string $product_type type of product.
WC_Product $_product wc product.
Paramsstring $gift_price_html The price.
WC_Product $product The product.
YWDPD_Gift_Products $rule The rule.
Returnbool
includes/dynamic-rules/price-rules/class-ywdpd-last-deals.php
Is possible change the discount amount. Useful for multicurrency plugins
Params
float $discount_amount the discount amount.
Returnfloat
Is possible change the discount amount Useful for multicurrency plugins
Params
float $discount_amount the discount amount.
Returnfloat
includes/dynamic-rules/price-rules/class-ywdpd-quantity-table.php
Set if possible show the quantity table
Paramsbool $value Is valid or not.
YWDPD_Quantity_Table $rule The rule.
Returnbool
Set if possible show the discount in loop
Paramsbool $value Is valid or not.
YWDPD_Quantity_Table $rule The rule.
Returnbool
Manage the discount amount
Paramsfloat $percent_discount_amount discount amount percentage.
float $discount_amout discount amount
Is possible change the discount amount. Useful for multicurrency plugins
Params
float $discount_amount the discount amount.
Returnfloat
Is possible change the discount amount. Useful for multicurrency plugins
Params
float $discount_amount the discount amount.
Returnfloat
Allow round totals
Params
bool $allow_round True or false.
Returnbool
includes/dynamic-rules/price-rules/class-ywdpd-special-offer.php
Set if possible show the discount in popup
Paramsbool $value Is valid or not.
YWDPD_Special_Offer $rule The rule.
Returnbool
Is possible change the discount amount. Useful for multicurrency plugins
Params
float $discount_amount the discount amount.
Returnfloat
Is possible change the discount amount. Useful for multicurrency plugins
Params
float $discount_amount the discount amount.
Returnfloat
Allow round totals
Params
bool $allow_round True or false.
Returnbool
includes/functions.yith-wc-dynamic-options.php
Params
array $rule_for_list The options
Returnarray
Params
array $rule_for_search_fields The options
Returnarray
Params
array $exclude_rule_for_options The options
Returnarray
Params
array $exclude_rule_for_search_fields The options
Returnarray
Params
array $adjustment_to_list The options
Returnarray
Params
array $adjustment_to_search_fields The options
Returnarray
Params
array $exclude_adjustment_to_options The options
Returnarray
Params
array $exclude_adjustment_to_search_fields The options
Returnarray
Allow change the membership options
Params
array $membership_plan_included The options
Returnarray
Allow change the membership options
Params
array $membership_plan_excluded The options
Returnarray
Allow change the user options
Params
array $user_options_include The options
Returnarray
Allow change the user options
Params
array $user_options_exclude The options
Returnarray
Allow change the product options
Params
array $product_require_options The options
Returnarray
Allow change the product options
Params
array $product_require_options The options.
Returnarray
Allow change the product options
Params
array $product_require_options The options
Returnarray
includes/functions.yith-wc-dynamic-pricing.php
Is possible change the discount amount. Useful for multicurrency plugins
Params
float $discount_amount the discount amount.
Returnfloat
Change the discounted price in the table
Paramsfloat $new_price the new price.
float $price the old price.
array $rule The rule configuration.
Returnfloat
Cart has coupon
Params
bool $has_coupon True or false.
Returnbool
Change the note
Params
string $note The note.
Returnstring
The coupon is valid
Paramsbool $valid True or false.
WC_Coupon $coupon The coupon.
array $object The coupon data.
Returnstring
Skip cart check
Paramsbool $skip True or false.
WC_Cart $cart The cart.
Returnbool
Process cart item check
Paramsbool $process True or false.
array $cart_item The cart item.
Returnbool
includes/traits/trait-ywdpd-advanced-conditions-trait.php
Change the required product ids
Paramsarray $list The product ids.
YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.
Returnarray
Change the required product category ids
Paramsarray $list The product category ids.
YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.
Returnarray
Change the required product tag ids
Paramsarray $list The product tag ids.
YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.
Returnarray
Change the excluded product tag ids
Paramsarray $list The product ids.
YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.
Returnarray
Change the excluded product category ids
Paramsarray $list The product category ids.
YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.
Returnarray
Change the excluded product tag ids
Paramsarray $list The product tag ids.
YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.
Returnarray
Change the disabled product ids
Paramsarray $list The product ids.
YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.
Returnarray
Change the disabled product category ids
Paramsarray $list The product category ids.
YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.
Returnarray
Change the disabled product tag ids
Paramsarray $list The product tag ids.
YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.
Returnarray
Change the minimum subtotal
Paramsfloat $value The minimum subtotal.
YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.
Returnfloat
Change the maximum subtotal
Paramsfloat $value The maximum subtotal.
YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.
Returnfloat
Set if customer condition is valid or not
Paramsbool $is_valid Is valid.
array $condition The condition.
array $conditions All conditions.
YWDPD_Cart_Rule $rule The cart rule.
Returnbool
Set if the product condition is valid or not
Paramsbool $is_valid Is valid.
array $condition The condition.
array $conditions All conditions.
YWDPD_Cart_Rule $rule The cart rule.
Returnbool
Set if the product is excluded or not
Paramsbool $is_excluded Is valid.
array $condition The condition.
WC_Product $product The product.
YWDPD_Cart_Rule $rule The cart rule.
Returnbool
Set if the product condition is valid or not
Paramsbool $is_excluded Is valid.
array $condition The condition.
array $conditions All conditions.
WC_Product $product The product.
YWDPD_Cart_Rule $rule The cart rule.
Returnbool
Paramsboolean $is_valid
array $condition The single condition.
YWDPD_Cart_Rule|YWDPD_Last_Deals $this Rule Object.
Returnarray
Set if the product can be counted or not
Paramsbool $can_count True or false.
WC_Product $product The product.
Returnbool
Set if the product can be counted or not
Paramsbool $can_count True or false.
WC_Product $product The product.
Returnbool
Set the cart item quantities
Params
int $num_items The quantity.
Returnint
Set if the product can be counted or not
Paramsbool $can_count True or false.
WC_Product $product The product.
Returnbool
includes/traits/trait-ywdpd-cached-request-trait.php
The filter allow to manage the shippo cache object
Params
WP_Object_Cache $wp_object_cache The object cache.
ReturnWP_Object_Cache
init.php
Allow to init the plugin
Params
bool $init_plugin True or false.
Returnbool
plugin-options/dynamic-rules-options.php
Allow change the rule tab settings options
Params
array $pricing The options.
Returnarray
templates/woocommerce/single-product/ywdpd-quantity-table.php
Change the base product price
Paramsfloat $price The price.
WC_Product $product The product.
Returnfloat
Change the base product price
Paramsfloat $price The price.
WC_Product $product The product.
Returnfloat
templates/yith_ywdpd_popup.php
Allow to change the no thanks label
Params
string $label The options.
Returnstring