View Product Page

Filters

includes/abstracts/abstract-ywdpd-data.php

Copied!
Copy

This filter change the value of an object property

Params
 mixed      $value The value to filter.
 YWDPD_Data $object The current object.

Return mixed

includes/abstracts/abstract-ywdpd-price-rule.php

Copied!
Copy

With this filter is possible exclude or not a user

Params
 bool $is_in_exclusion The value to filter.
 YWDPD_Price_Rule $object The current object.

Return bool

Copied!
Copy

With this filter is possible validate a rule for a user

Params
 bool $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.

Return bool

Copied!
Copy

With this filter is possible validate a rule for a user

Params
 bool $value The value to filter.
 YWDPD_Price_Rule $object The current object.

Return bool

Copied!
Copy

With this filter is possible set if a rule can be applied with other rules

Params
 bool $value The value to filter.
 YWDPD_Price_Rule $object The current object.

Return bool

Copied!
Copy

With this filter is possible set if a rule can be applied with on-sale products

Params
 bool $value The value to filter.
 YWDPD_Price_Rule $object The current object.

Return bool

Copied!
Copy

With this filter is possible set if a rule can be applied with other coupons

Params
 bool $value The value to filter.
 YWDPD_Price_Rule $object The current object.

Return bool

Copied!
Copy

With this filter is possible set if a rule is valid to apply

Params
 bool $is_valid The value to filter.
 string $type The valid type.
 WC_Product $product The product.
 YWDPD_Price_Rule $object The current object.

Return bool

Copied!
Copy

With this filter is possible set if a product is excluded in the rule

Params
 bool $is_excluded The value to filter.
 string $type The valid type.
 WC_Product $product The product.
 YWDPD_Price_Rule $object The current object.

Return bool

Copied!
Copy

With this filter is possible set if a product is excluded in the rule

Params
 bool $is_excluded The value to filter.
 string $type The valid type.
 WC_Product $product The product.
 YWDPD_Price_Rule $object The current object.

Return bool

Copied!
Copy

With this filter is possible not allow variation checks

Params
 bool $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.

Return bool

Copied!
Copy

Check if the product is in the list

Params
 bool $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.

Return bool

Copied!
Copy

Rule is enabled for adjustment

Params
 bool $value The value to filter.
 YWDPD_Price_Rule $object The current object.

Return bool

Copied!
Copy

Rule is valid to adjustment

Params
 bool $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.

Return bool

Copied!
Copy

Change the comulative quantity

Params
 int $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.

Return int

Copied!
Copy

Filter the price to discount

Params
 float $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.

Return float

Copied!
Copy

Filter the price to discount

Params
 bool $save_discount_in_cart The value to filter.
 float $discounted_price The discounted price.
 float $original_price The original price.

Return bool

includes/abstracts/abstract-ywdpd-rule.php

Copied!
Copy

With this filter is possible change the enable status of a rule

Params
 bool       $value  The value to filter.
 YWDPD_Rule $object The current object.

Return bool

Copied!
Copy

With this filter is possible schedule the rule

Params
 bool       $value    The value to filter.
 array      $schedule The schedule configuration.
 YWDPD_Rule $object   The current object.

Return bool

includes/admin/custom-fields/qty-range-discount.php

Copied!
Copy

Allow to change the input number pattern

Params
 string $pattern The pattern.

Return string

includes/admin/metaboxes/dynamic-discount-metaboxes.php

Copied!
Copy

Allow change the meta box options

Params
 array $options The options

Return array

includes/class-yith-wc-dynamic-cart-rules-manager.php

Copied!
Copy

Avoid to apply different carts rules at the same time

Params
 bool

Copied!
Copy

Is possible change the discount amount. Useful for multicurrency plugins

Params
 float $discount_amount the discount amount.

Return float

Copied!
Copy

Is possible change the coupon code

Params
 string $coupon_code the coupon code.

Return string

Copied!
Copy

Is possible change the coupon code

Params
 string $coupon_code the coupon code.

Return string

Copied!
Copy

Is possible change the coupon label

Params
 string $coupon_label the coupon label.

Return string

includes/class-yith-wc-dynamic-exclusion-manager.php

Copied!
Copy

The product is in the exclusion list or not

Params
 bool       $is_in_exclusion the coupon label.
 WC_Product $product         The product.

Return string

Copied!
Copy

The product ids that are in exclusion list

Params
 array $product_ids the ids

Return array

Copied!
Copy

The product tag ids that are in exclusion list

Params
 array $product_tag_ids the ids

Return array

Copied!
Copy

The product category ids that are in exclusion list

Params
 array $product_category_ids the ids

Return array

includes/class-yith-wc-dynamic-price-rules-manager.php

Copied!
Copy

Allow to show or hide the remove link for dynamic products

Params
 bool  $can_hide_link Hide or not the link.
 array $cart_item     The cart item.

includes/class-yith-wc-dynamic-pricing-discounts.php

Copied!
Copy

Filter the locale

Params
 string $locale      the locale.
 string $text_domain The text domain.

Return string

Copied!
Copy

Change the day ago to delete older coupons

Params
 int $day_ago The day ago.

Return int

includes/class-yith-wc-dynamic-pricing-gift-product.php

Copied!
Copy

Params
 bool $show Is true if the current page is the cart page.

Return bool

includes/class-yith-ywdpd-counter.php

Copied!
Copy

Skip the cart check

Params
 bool $skip Skip or not.

Return bool

Copied!
Copy

Process the cart item check

Params
 bool  $process   Process item or not.
 array $cart_item The cart item.

Return bool

Copied!
Copy

Set the original product price

Params
 float  $price_to_restore The price.
 array  $cart_item        The cart item.
 string $cart_item_key    The cart item key.

Return float

Copied!
Copy

Allow to count the item

Params
 bool  $can_count     If the item can count.
 array $cart_item     If the item .
 bool  $cart_item_key If the item key.

Return bool

Copied!
Copy

Add custom taxonomy

Params
 array $custom_taxonomies The custom taxonomies.

Return array

includes/class-ywdpd-ajax.php

Copied!
Copy

Change the base product price

Params
 float $price The price.
 WC_Product $product The product.

Return float

includes/class-ywdpd-assets.php

Copied!
Copy

Params
 string $reload yes or no.

Return string

Copied!
Copy

Change table orientation

Params
 string $template The template.

Return string

Copied!
Copy

Change product css class

Params
 string $class The product css class.

Return string

Copied!
Copy

Change product price css class

Params
 string $class The product price css class.

Return string

Copied!
Copy

Change product qty css class

Params
 string $class The product qty css class.

Return string

Copied!
Copy

Change product variation form css class

Params
 string $class The product variation form css class.

Return string

Copied!
Copy

Show min quantity in the table

Params
 bool $show_min Show the min or not.

Return bool

Copied!
Copy

Can update prices via ajax

Params
 string $can_update Yes or no.

Return string

Copied!
Copy

Can show the table on variable product

Params
 string $can_show Yes or no.

Return string

Copied!
Copy

Can add args for the script

Params
 array $script_args The args.

Return array

includes/class-ywdpd-frontend.php

Copied!
Copy

Can calculate the dynamic price for the product

Params
 bool       $can_calculate True or false.
 WC_Product $product The product.

Return bool

Copied!
Copy

Change the base product price

Params
 float      $price The price.
 WC_Product $product The product.

Return float

Copied!
Copy

Return the price html

Params
 string     $price_html price html.
 float      $old_price The old price.
 float      $new_price The new price.
 WC_Product $product The product.

Return string

Copied!
Copy

Return the variable regular price html

Params
 string     $price_html price html.
 float      $min The min price.
 float      $max The max price.
 WC_Product $product The product.

Return string

Copied!
Copy

Return the variable dynamic price html

Params
 string     $price_html price html.
 float      $min The min price.
 float      $max The max price.
 WC_Product $product The product.

Return string

Copied!
Copy

Return the variable price html

Params
 string     $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.

Return string

Copied!
Copy

The price rule is valid in cart or not

Params
 bool                                                              $is_valid True or false.
 YWDPD_Quantity_Table|YWDPD_Discount_Whole|YWDPD_Category_Discount $price_rule The rule.
 WC_Product                                                        $product The product.

Return bool

Copied!
Copy

Change the base product price

Params
 float      $price The price.
 WC_Product $product The product.

Return float

Copied!
Copy

Change the base product price

Params
 float      $price The price.
 WC_Product $product The product.

Return float

Copied!
Copy

Return a custom hook to show the table

Params
 array $custom_hook The custom hook.

Return array

Copied!
Copy

Change the original price in cart

Params
 float $price the price.
 array $cart_item The cart item.

Return float

Copied!
Copy

Change the dynamic price

Params
 float $price the price.
 array $cart_item The cart item.

Return float

Copied!
Copy

Show the sale price format html

Params
 bool  $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.

Return float

Copied!
Copy

Replace the cart item price

Params
 string $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.

Return string

Copied!
Copy

Change the original price in cart

Params
 float $price the price.
 array $cart_item The cart item.

Return float

Copied!
Copy

Change the Special offer name

Params
 string $rule_name the price.

Return string

Copied!
Copy

Change the rule name

Params
 string $rule_name the price.

Return string

includes/class-ywdpd-shortcodes.php

Copied!
Copy

Show the quantity table in the product

Params
 bool $show Show or not.
 WC_Product $product The product.

Return bool

Copied!
Copy

Show the notice in the product

Params
 bool $show Show or not.
 WC_Product $product The product.

Return bool

includes/class-ywdpd-utils.php

Copied!
Copy

Change the base product price

Params
 float      $price   The price.
 WC_Product $product The product.

Return float

Copied!
Copy

Change the base product price

Params
 float      $price   The price.
 WC_Product $product The product.

Return float

Copied!
Copy

Change the base product price

Params
 float      $price   The price.
 WC_Product $product The product.

Return float

Copied!
Copy

Change the table header

Params
 string $qty_html the header.
 int    $min_qty  the min qty.
 int    $max_qty  the max qty.
 array  $qty_rule the quantity rule.

Return string

Copied!
Copy

Params
 float      $price_to_display the price.
 WC_Product $product          the product.
 float      $price            the base price.

Return float

Copied!
Copy

Params
 float      $price_to_display the price.
 WC_Product $product          the product.
 float      $price            the base price.

Return float

Copied!
Copy

Params
 bool       $can_use_regular_price Is possible use the regular price.
 WC_Product $product               the product.

Return bool

Copied!
Copy

Change the decimals rounding in percentage discount calculation

Params
 int $decimals the number of decimals to round (default from wc_get_price_decimals function).

Copied!
Copy

Change the percentage discount

Params
 float $percentage       the percentage discount.
 float $discounted_price the discounted price.
 float $old_price        the old price.

Return float

Copied!
Copy

Change the percentage discount html

Params
 string $percentage_discount_format the percentage discount html.
 float  $percentage                 the percentage value.

Return string

Copied!
Copy

Change the percentage discount range html

Params
 string $percentage_discount_format the percentage discount html.
 float  $percentage_from            the min percentage value.
 float  $percentage_to              the max percentage value.

Return string

Copied!
Copy

Change the price html

Params
 string     $price_html the price html.
 float      $old_price  the old price.
 float      $new_price  the new price.
 WC_Product $product    the product.

Return float

Copied!
Copy

Add product ids to exclude

Params
 array            $product_ids the array.
 YWDPD_Price_Rule $price_rule  the price rule.
 string           $exclude_for the exclude condition.

Return array

Copied!
Copy

Add product id to include

Params
 array            $product_ids    the array.
 YWDPD_Price_Rule $price_rule     the price rule.
 string           $adjustment_for the condition.

Return array

Copied!
Copy

Add product ids to exclude

Params
 array            $product_ids the array.
 YWDPD_Price_Rule $price_rule  the price rule.
 string           $exclude_for the exclude condition.

Return array

Copied!
Copy

Add product id to include

Params
 array            $product_ids the array.
 YWDPD_Price_Rule $price_rule  the price rule.
 string           $rule_for    the condition.

Return array

includes/dynamic-rules/cart-rules/class-ywdpd-cart-rule.php

Copied!
Copy

Show the cart notice in the cart

Params
 bool $show Show or not.
 YWDPD_Cart_Rule $cart_rule The cart rule.

Return bool

Copied!
Copy

Filter the discount amount percentage string

Params
 float $discount_amount the discount amount.

Return float

Copied!
Copy

Is possible change the discount amount. Useful for multicurrency plugins

Params
 float $discount_amount the discount amount.

Return float

includes/dynamic-rules/price-rules/class-ywdpd-bogo.php

Copied!
Copy

Set if rule is valid

Params
 bool       $is_valid True or false.
 string     $type The condition type.
 WC_Product $product The  product.
 YWDPD_BOGO $rule The  rule.

Return bool

Copied!
Copy

Set if rule is enabled for adjustment

Params
 bool       $is_enabled True or false.
 YWDPD_BOGO $rule The  rule.

Return bool

includes/dynamic-rules/price-rules/class-ywdpd-category-discount.php

Copied!
Copy

Set if show discount in loop

Params
 bool                    $value True or false.
 YWDPD_Category_Discount $rule  The  rule.

Return bool

Copied!
Copy

Set product category ids

Params
 array                   $product_ids The product ids.
 YWDPD_Category_Discount $rule        The  rule.

Return array

Copied!
Copy

Set if rule is valid

Params
 bool                    $value   True or false.
 string                  $type    The type.
 WC_Product              $product the product.
 YWDPD_Category_Discount $rule    The  rule.

Return bool

Copied!
Copy

Set the product category id

Params
 int $category_id The category id.

Return int

Copied!
Copy

Is possible change the discount amount. Useful for multicurrency plugins

Params
 float $discount_amount the discount amount.

Return float

Copied!
Copy

Is possible change the discount amount Useful for multicurrency plugins

Params
 float $discount_amount the discount amount.

Return float

Copied!
Copy

Allow round totals

Params
 bool $allow_round True or false.

Return bool

includes/dynamic-rules/price-rules/class-ywdpd-discount-whole.php

Copied!
Copy

Set if show discount in loop

Params
 bool                 $value True or false.
 YWDPD_Discount_Whole $rule  The  rule.

Return bool

Copied!
Copy

Set if rule is valid

Params
 bool                 $value   True or false.
 string               $type    The type.
 WC_Product           $product the product.
 YWDPD_Discount_Whole $rule    The  rule.

Return bool

Copied!
Copy

Is possible change the discount amount. Useful for multicurrency plugins

Params
 float $discount_amount the discount amount.

Return float

Copied!
Copy

Is possible change the discount amount. Useful for multicurrency plugins

Params
 float $discount_amount the discount amount.

Return float

Copied!
Copy

Allow round totals

Params
 bool $allow_round True or false.

Return bool

includes/dynamic-rules/price-rules/class-ywdpd-gift-products.php

Copied!
Copy

Set minimum subtotal

Params
 float               $min_subtotal The subtotal.
 YWDPD_Gift_Products $rule         The  rule.

Return float

Copied!
Copy

Set if rule is valid

Params
 bool                $value   True or false.
 string              $type    The type.
 WC_Product          $product the product.
 YWDPD_Gift_Products $rule    The  rule.

Return bool

Copied!
Copy

Set cart subtotal

Params
 float               $subtotal The subtotal.
 YWDPD_Gift_Products $rule     The  rule.

Return float

Copied!
Copy

Rule is valid on cart

Params
 bool                $is_valid Is valid or not.
 YWDPD_Gift_Products $rule     The  rule.

Return bool

Copied!
Copy

Rule is enabled for adjustment

Params
 bool                $value Is valid or not.
 YWDPD_Gift_Products $rule  The  rule.

Return bool

Copied!
Copy

can the product be added to cart automatically

Params
 boolean    $can_add .
 string     $product_type type of product.
 WC_Product $_product wc product.

Copied!
Copy

Params
 string              $gift_price_html The price.
 WC_Product          $product         The product.
 YWDPD_Gift_Products $rule            The  rule.

Return bool

includes/dynamic-rules/price-rules/class-ywdpd-last-deals.php

Copied!
Copy

Is possible change the discount amount. Useful for multicurrency plugins

Params
 float $discount_amount the discount amount.

Return float

Copied!
Copy

Is possible change the discount amount Useful for multicurrency plugins

Params
 float $discount_amount the discount amount.

Return float

includes/dynamic-rules/price-rules/class-ywdpd-quantity-table.php

Copied!
Copy

Set if possible show the quantity table

Params
 bool                 $value Is valid or not.
 YWDPD_Quantity_Table $rule  The  rule.

Return bool

Copied!
Copy

Set if possible show the discount in loop

Params
 bool                 $value Is valid or not.
 YWDPD_Quantity_Table $rule  The  rule.

Return bool

Copied!
Copy

Manage the discount amount

Params
 float $percent_discount_amount discount amount percentage.
 float $discount_amout discount amount

Copied!
Copy

Is possible change the discount amount. Useful for multicurrency plugins

Params
 float $discount_amount the discount amount.

Return float

Copied!
Copy

Is possible change the discount amount. Useful for multicurrency plugins

Params
 float $discount_amount the discount amount.

Return float

Copied!
Copy

Allow round totals

Params
 bool $allow_round True or false.

Return bool

includes/dynamic-rules/price-rules/class-ywdpd-special-offer.php

Copied!
Copy

Set if possible show the discount in popup

Params
 bool                $value Is valid or not.
 YWDPD_Special_Offer $rule  The  rule.

Return bool

Copied!
Copy

Is possible change the discount amount. Useful for multicurrency plugins

Params
 float $discount_amount the discount amount.

Return float

Copied!
Copy

Is possible change the discount amount. Useful for multicurrency plugins

Params
 float $discount_amount the discount amount.

Return float

Copied!
Copy

Allow round totals

Params
 bool $allow_round True or false.

Return bool

includes/functions.yith-wc-dynamic-options.php

Copied!
Copy

Params
 array $rule_for_list The options

Return array

Copied!
Copy

Params
 array $rule_for_search_fields The options

Return array

Copied!
Copy

Params
 array $exclude_rule_for_options The options

Return array

Copied!
Copy

Params
 array $exclude_rule_for_search_fields The options

Return array

Copied!
Copy

Params
 array $adjustment_to_list The options

Return array

Copied!
Copy

Params
 array $adjustment_to_search_fields The options

Return array

Copied!
Copy

Params
 array $exclude_adjustment_to_options The options

Return array

Copied!
Copy

Params
 array $exclude_adjustment_to_search_fields The options

Return array

Copied!
Copy

Allow change the membership options

Params
 array $membership_plan_included The options

Return array

Copied!
Copy

Allow change the membership options

Params
 array $membership_plan_excluded The options

Return array

Copied!
Copy

Allow change the user options

Params
 array $user_options_include The options

Return array

Copied!
Copy

Allow change the user options

Params
 array $user_options_exclude The options

Return array

Copied!
Copy

Allow change the product options

Params
 array $product_require_options The options

Return array

Copied!
Copy

Allow change the product options

Params
 array $product_require_options The options.

Return array

Copied!
Copy

Allow change the product options

Params
 array $product_require_options The options

Return array

includes/functions.yith-wc-dynamic-pricing.php

Copied!
Copy

Is possible change the discount amount. Useful for multicurrency plugins

Params
 float $discount_amount the discount amount.

Return float

Copied!
Copy

Change the discounted price in the table

Params
 float $new_price the new price.
 float $price     the old price.
 array $rule      The rule configuration.

Return float

Copied!
Copy

Cart has coupon

Params
 bool $has_coupon True or false.

Return bool

Copied!
Copy

Change the note

Params
 string $note The note.

Return string

Copied!
Copy

The coupon is valid

Params
 bool      $valid  True or false.
 WC_Coupon $coupon The coupon.
 array     $object The coupon data.

Return string

Copied!
Copy

Skip cart check

Params
 bool    $skip True or false.
 WC_Cart $cart The cart.

Return bool

Copied!
Copy

Process cart item check

Params
 bool  $process   True or false.
 array $cart_item The cart item.

Return bool

includes/traits/trait-ywdpd-advanced-conditions-trait.php

Copied!
Copy

Change the required product ids

Params
 array                            $list The product ids.
 YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.

Return array

Copied!
Copy

Change the required product category ids

Params
 array                            $list The product category ids.
 YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.

Return array

Copied!
Copy

Change the required product tag ids

Params
 array                            $list The product tag ids.
 YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.

Return array

Copied!
Copy

Change the excluded product tag ids

Params
 array                            $list The product ids.
 YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.

Return array

Copied!
Copy

Change the excluded product category ids

Params
 array                            $list The product category ids.
 YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.

Return array

Copied!
Copy

Change the excluded product tag ids

Params
 array                            $list The product tag ids.
 YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.

Return array

Copied!
Copy

Change the disabled product ids

Params
 array                            $list The product ids.
 YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.

Return array

Copied!
Copy

Change the disabled product category ids

Params
 array                            $list The product category ids.
 YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.

Return array

Copied!
Copy

Change the disabled product tag ids

Params
 array                            $list The product tag ids.
 YWDPD_Cart_Rule|YWDPD_Last_Deals $rule The rule.

Return array

Copied!
Copy

Change the minimum subtotal

Params
 float                            $value The minimum subtotal.
 YWDPD_Cart_Rule|YWDPD_Last_Deals $rule  The rule.

Return float

Copied!
Copy

Change the maximum subtotal

Params
 float                            $value The maximum subtotal.
 YWDPD_Cart_Rule|YWDPD_Last_Deals $rule  The rule.

Return float

Copied!
Copy

Set if customer condition is valid or not

Params
 bool            $is_valid   Is valid.
 array           $condition  The condition.
 array           $conditions All conditions.
 YWDPD_Cart_Rule $rule       The cart rule.

Return bool

Copied!
Copy

Set if the product condition is valid or not

Params
 bool            $is_valid   Is valid.
 array           $condition  The condition.
 array           $conditions All conditions.
 YWDPD_Cart_Rule $rule       The cart rule.

Return bool

Copied!
Copy

Set if the product is excluded or not

Params
 bool            $is_excluded Is valid.
 array           $condition   The condition.
 WC_Product      $product     The product.
 YWDPD_Cart_Rule $rule        The cart rule.

Return bool

Copied!
Copy

Set if the product condition is valid or not

Params
 bool            $is_excluded Is valid.
 array           $condition   The condition.
 array           $conditions  All conditions.
 WC_Product      $product     The  product.
 YWDPD_Cart_Rule $rule        The cart rule.

Return bool

Copied!
Copy

Params
 boolean $is_valid
 array   $condition The single condition.
 YWDPD_Cart_Rule|YWDPD_Last_Deals $this Rule Object.

Return array

Copied!
Copy

Set if the product can be counted or not

Params
 bool       $can_count True or false.
 WC_Product $product   The  product.

Return bool

Copied!
Copy

Set if the product can be counted or not

Params
 bool       $can_count True or false.
 WC_Product $product   The  product.

Return bool

Copied!
Copy

Set the cart item quantities

Params
 int $num_items The quantity.

Return int

Copied!
Copy

Set if the product can be counted or not

Params
 bool       $can_count True or false.
 WC_Product $product   The  product.

Return bool

includes/traits/trait-ywdpd-cached-request-trait.php

Copied!
Copy

The filter allow to manage the shippo cache object

Params
 WP_Object_Cache $wp_object_cache The object cache.

Return WP_Object_Cache

init.php

Copied!
Copy

Allow to init the plugin

Params
 bool $init_plugin True or false.

Return bool

plugin-options/dynamic-rules-options.php

Copied!
Copy

Allow change the rule tab settings options

Params
 array $pricing The options.

Return array

templates/woocommerce/single-product/ywdpd-quantity-table.php

Copied!
Copy

Change the base product price

Params
 float      $price   The price.
 WC_Product $product The product.

Return float

Copied!
Copy

Change the base product price

Params
 float      $price   The price.
 WC_Product $product The product.

Return float

templates/yith_ywdpd_popup.php

Copied!
Copy

Allow to change the no thanks label

Params
 string $label The options.

Return string