shvsh > /home/accounts/gwcfreed/wisdmlabs/public_html/docs/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php
shvsh > /home/accounts/gwcfreed/wisdmlabs/public_html/docs/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php
shvsh > /home/accounts/gwcfreed/wisdmlabs/public_html/docs/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php

Hooks

No Arguments

wdm_add_before_simple_csp

Action
This action triggers before listing the CSP rules on the product edit pages.

customer-specific-pricing-for-woocommerce/templates/print_user_specific_pricing_tab_content.php: 68

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-get-data.php: 47

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 1242

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 1268

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 1465

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 1495

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 1767

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 1809

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 1819

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 1826

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 1833

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 1888

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 1898

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 1904

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 1910

customer-specific-pricing-for-woocommerce/includes/import-export/import/process-import/class-wdm-abstract-process-csv-batches.php: 326

customer-specific-pricing-for-woocommerce/includes/import-export/import/process-import/class-wdm-abstract-process-csv-batches.php: 336

customer-specific-pricing-for-woocommerce/includes/import-export/import/process-import/class-wdm-abstract-process-csv-batches.php: 342

customer-specific-pricing-for-woocommerce/includes/cart-discount/data-store/class-feature-settings.php: 120

customer-specific-pricing-for-woocommerce/includes/class-wdm-product-tables.php: 61

customer-specific-pricing-for-woocommerce/includes/csp-api/cspapi-functions.php: 73

No Arguments
No Arguments

wdm_csp_after_rule_notes

Action
This action gets triggered after showing rule notes section

customer-specific-pricing-for-woocommerce/templates/rule-section.php: 26

No Arguments
No Arguments

wdm_csp_simple_rule_section

Action
This action gets triggred while loading the CSP rule edit sections for the simple products on product edit pages,the action is used internally to list all the three CSP price type rule edit sections

customer-specific-pricing-for-woocommerce/templates/rule-section.php: 37

No Arguments
No Arguments

wdm_after_csp_simple_rule_section

Action
This action triggers after generating the html for the CSP prices sections on the simple product edit pages.

customer-specific-pricing-for-woocommerce/templates/rule-section.php: 44

No Arguments

array$cspMeta: {Array containg the following information about the plugin.

before_wisdm_csp_upgrade

Action
This action gets executed before upgrading CSP to the newest version.array $cspMeta {Array containg the following information about the plugin.}

customer-specific-pricing-for-woocommerce/customer-specific-pricing-for-woocommerce.php: 472

array$cspMeta: {Array containg the following information about the plugin.

array$cspMeta: {Array containg the following information about the plugin.

after_wisdm_csp_upgrade

Action
This action gets executed after upgrading CSP to the newest version.array $cspMeta {Array containg the following information about the plugin.}

customer-specific-pricing-for-woocommerce/customer-specific-pricing-for-woocommerce.php: 487

array$cspMeta: {Array containg the following information about the plugin.

array$userArgs: array of arguements specifying what user data to fetch.

wdm_usp_user_dropdown_params

Filter
Filter which can be use to filter the user parameters defined by CSP to generate user dropdowns for CSP rules.array $userArgs array of arguements specifying what user data to fetch.

customer-specific-pricing-for-woocommerce/includes/global-discount/class-global-discount-settings.php: 363

customer-specific-pricing-for-woocommerce/includes/category-pricing/class-wdm-wusp-category-pricing.php: 492

array$userArgs: array of arguements specifying what user data to fetch.

float$regularPrice: Regular price of the product.

object$product: woocommerce product object.

wisdm_csp_regular_price_for_display

Filter
Filter regulkar price to be displayed in Regular price section of CSP when enabled.float $regularPrice Regular price of the product.object $product woocommerce product object.

customer-specific-pricing-for-woocommerce/includes/class-wdm-usp-product-price-commons.php: 94

float$regularPrice: Regular price of the product.

object$product: woocommerce product object.

string$regularPriceHtml: Html for the regular price display.

string$RegularPriceText: Text to be displayed in front of the regular price in CSP settings.

float$regularPrice: Actual regular price of the product.

int$productId: WooCommerce Product ID.

wdm_csp_regular_price_html

Filter
This filter can be used to filter the regular price html displayed by CSP.string $regularPriceHtml Html for the regular price display.string $RegularPriceText Text to be displayed in front of the regular price in CSP settings.float $regularPrice Actual regular price of the product.int $productId WooCommerce Product ID.

customer-specific-pricing-for-woocommerce/includes/class-wdm-usp-product-price-commons.php: 106

string$regularPriceHtml: Html for the regular price display.

string$RegularPriceText: Text to be displayed in front of the regular price in CSP settings.

float$regularPrice: Actual regular price of the product.

int$productId: WooCommerce Product ID.

string$cspDescriptionHtml:

string$descriptionText: Description text saved in the CSP settings.

wdm_csp_discription_html

Filter
Filter CSP descriptionstring $cspDescriptionHtmlstring $descriptionText Description text saved in the CSP settings.

customer-specific-pricing-for-woocommerce/includes/class-wdm-usp-product-price-commons.php: 130

string$cspDescriptionHtml:

string$descriptionText: Description text saved in the CSP settings.

bool$applyCSP: to apply CSP or not.

int$cart_item_key: cart product id.

object$cart_item: WooCommerce cart item object.

wdm_csp_apply_quantity_price_in_mini_cart

Filter
Filter to manage CSP price application in the minicart & item price.bool $applyCSP to apply CSP or not.int $cart_item_key cart product id.object $cart_item WooCommerce cart item object.

customer-specific-pricing-for-woocommerce/includes/class-wdm-usp-product-price-commons.php: 171

bool$applyCSP: to apply CSP or not.

int$cart_item_key: cart product id.

object$cart_item: WooCommerce cart item object.

array$uspRules: array of CSP rules.

int$userId: Id of the user for which these rules are fetched.

array$productIds: {

wdm_csp_filter_usp_rules_for_a_product

Filter
Filter to filter the CSP user specific pricing rules for the product.array $uspRules array of CSP rules.int $userId Id of the user for which these rules are fetched.array $productIds {}

customer-specific-pricing-for-woocommerce/includes/class-wdm-usp-product-price-commons.php: 356

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-get-data.php: 80

array$uspRules: array of CSP rules.

int$userId: Id of the user for which these rules are fetched.

array$productIds: {

array$rspRules: array of CSP rules.

array$roles: role slugs for which these rules are fetched.

array$productIds: {

wdm_csp_filter_rsp_rules_for_a_product

Filter
Filter to filter the CSP role specific pricing rules for the product.array $rspRules array of CSP rules.array $roles role slugs for which these rules are fetched.array $productIds {}

customer-specific-pricing-for-woocommerce/includes/class-wdm-usp-product-price-commons.php: 386

customer-specific-pricing-for-woocommerce/includes/role-specific-pricing/class-wdm-wusp-simple-products-rsp.php: 333

array$rspRules: array of CSP rules.

array$roles: role slugs for which these rules are fetched.

array$productIds: {

array$gspRules: array of group specific CSP rules.

array$groups: group Ids for which these rules are fetched.

array$productIds: {

wdm_csp_filter_gsp_rules_for_a_product

Filter
Filter to filter the CSP group specific pricing rules for the product.array $gspRules array of group specific CSP rules.array $groups group Ids for which these rules are fetched.array $productIds {}

customer-specific-pricing-for-woocommerce/includes/class-wdm-usp-product-price-commons.php: 416

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-get-data.php: 172

array$gspRules: array of group specific CSP rules.

array$groups: group Ids for which these rules are fetched.

array$productIds: {

array$uspRules: array of CSP rules.

array$userId: user Id for which these rules are fetched.

array$catSlugs: {

wdm_csp_filter_usp_qty_one_rules_for_categories

Filter
Filter to filter the CSP user specific pricing rules for the categories.array $uspRules array of CSP rules.array $userId user Id for which these rules are fetched.array $catSlugs {}

customer-specific-pricing-for-woocommerce/includes/class-wdm-usp-product-price-commons.php: 453

array$uspRules: array of CSP rules.

array$userId: user Id for which these rules are fetched.

array$catSlugs: {

array$uspRules: array of CSP rules.

array$roles: role slugs for which these rules are fetched.

array$catSlugs: {

wdm_csp_filter_rsp_qty_one_rules_for_categories

Filter
Filter to filter the CSP role specific pricing rules for the categories.array $uspRules array of CSP rules.array $roles role slugs for which these rules are fetched.array $catSlugs {}

customer-specific-pricing-for-woocommerce/includes/class-wdm-usp-product-price-commons.php: 490

array$uspRules: array of CSP rules.

array$roles: role slugs for which these rules are fetched.

array$catSlugs: {

array$gspRules: array of CSP rules.

array$groupIds: group Ids for which these rules are fetched.

array$catSlugs: {

wdm_csp_filter_gsp_qty_one_rules_for_categories

Filter
Filter to filter the CSP group specific pricing rules for the categories.array $gspRules array of CSP rules.array $groupIds group Ids for which these rules are fetched.array $catSlugs {}

customer-specific-pricing-for-woocommerce/includes/class-wdm-usp-product-price-commons.php: 527

array$gspRules: array of CSP rules.

array$groupIds: group Ids for which these rules are fetched.

array$catSlugs: {

int$product_id: Id of the WooCommerce Product.

get_base_product_id_for_translated_product

Filter
This filter will be useful when it is required to get CSP pricing rules for the WPML translated product,return the base product Id for the product Id using this filter for the same.int $product_id Id of the WooCommerce Product.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-get-data.php: 25

customer-specific-pricing-for-woocommerce/includes/user-specific-pricing/class-wdm-wusp-variable-products-usp.php: 77

customer-specific-pricing-for-woocommerce/includes/role-specific-pricing/class-wdm-wusp-simple-products-rsp.php: 355

int$product_id: Id of the WooCommerce Product.

float$regularPrice: - Regular price of the product.

int$productId: - Product ID for the product.

wdm_csp_regular_price

Filter
Filter the regular price being used for the CSP price calculations.float $regularPrice - Regular price of the product.int $productId - Product ID for the product.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-get-data.php: 253

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 97

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 312

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 1047

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 1294

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 1345

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 1439

customer-specific-pricing-for-woocommerce/includes/role-specific-pricing/class-wdm-wusp-simple-products-rsp.php: 281

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-functions.php: 673

customer-specific-pricing-for-woocommerce/includes/category-pricing/class-wdm-wusp-get-category-data.php: 123

customer-specific-pricing-for-woocommerce/includes/category-pricing/class-wdm-wusp-get-category-data.php: 253

customer-specific-pricing-for-woocommerce/includes/category-pricing/class-wdm-wusp-get-category-data.php: 382

customer-specific-pricing-for-woocommerce/includes/category-pricing/class-wdm-wusp-get-category-data.php: 411

float$regularPrice: - Regular price of the product.

int$productId: - Product ID for the product.

string$hookName: Show in product summary.

wdm_csp_filter_product_total_position

Filter
By default the product total will be displayed in the product summary, if one isnot showing the product summary on the product page & wants to show product totalon some other action they can filter out the hook name.string $hookName Show in product summary.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 57

string$hookName: Show in product summary.

string$unset: - default 'unset' will apply CSP custom redirect any other value will ignore CSPs link.

string$url: - Current redirection url.

wdm_csp_redirect_to_custom_url_after_add_to_cart

Filter
When a product is added to the cart user gets redirected to the product page, in case of variation the variationselection on the variable product page, this functionality may cause some conflicts with some thims allowing to addvariations from the shop page, this filter can be use in such cases to prevent default CSP behaviour.string $unset - default 'unset' will apply CSP custom redirect any other value will ignore CSPs link.string $url - Current redirection url.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 142

string$unset: - default 'unset' will apply CSP custom redirect any other value will ignore CSPs link.

string$url: - Current redirection url.

int$minQty: minimum quantity defined by CSP Rules.

int$productID: woocommerce productId.

csp-filter-min-purchsable-quantity

Filter
This filter can be used to filter out the minimum urchase quantity applied for the product by CSP.int $minQty minimum quantity defined by CSP Rules.int $productID woocommerce productId.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 170

int$minQty: minimum quantity defined by CSP Rules.

int$productID: woocommerce productId.

bool$apply: true|false.

int$quantity: Current quantity.

object$cartItem.:

wdm_csp_apply_csp_based_minimum_qty_for_product_in_cart

Filter
Filter 'wdm_csp_apply_csp_based_minimum_qty_for_product_in_cart' can be used to prevent CSP minQty from getting applied in the cartbool $apply true|false.int $quantity Current quantity.object $cartItem.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 178

bool$apply: true|false.

int$quantity: Current quantity.

object$cartItem.:

string$message: - html content of the message to be displayed.

int$stock: - remaining stock quantity.

wdm_minimum_qty_less_in_stock_message

Filter
This filter can be used to change the messages being displayed when quantity in the stock is lesser thanthe minimum purchase quantity set by CSP rules.string $message - html content of the message to be displayed.int $stock - remaining stock quantity.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 274

string$message: - html content of the message to be displayed.

int$stock: - remaining stock quantity.

bool$apply: true|false.

int$min: current minimum quantity.

object$product: WooCommerce Product object.

wdm_csp_apply_csp_based_minimum_qty_for_product

Filter
This filter can be used to prevent CSP minQty from getting applied on the productbool $apply true|false.int $min current minimum quantity.object $product WooCommerce Product object.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 342

bool$apply: true|false.

int$min: current minimum quantity.

object$product: WooCommerce Product object.

bool$apply: to apply CSP for the cart item.

int$cart_product_id: product id.

wdm_csp_apply_quantity_price_in_cart

Filter
This filter can be used to preven CSP from applying CSP price to the cart itembool $apply to apply CSP for the cart item.int $cart_product_id product id.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 426

bool$apply: to apply CSP for the cart item.

int$cart_product_id: product id.

float$price: CSP calculated price for the product.

object$cart_item: WC Cart item.

wdm_csp_filter_cart_price

Filter
This filter can be used to filter/chnge the already applied CSP price in the cart.float $price CSP calculated price for the product.object $cart_item WC Cart item.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 445

float$price: CSP calculated price for the product.

object$cart_item: WC Cart item.

bool$current_price_status: Currently showing the price total for the product.

object$product: WC product object

wdm_csp_show_total_price

Filter
This filter can be ueful to conditionally show the product total on the product page.bool $current_price_status Currently showing the price total for the product.object $product WC product object

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 492

bool$current_price_status: Currently showing the price total for the product.

object$product: WC product object

object$product: WooCommerce Product Object

wdm_before_csp_total_price_html

Action
This action gets executed before the generation of the 'Product Total' html on the product pages.object $product WooCommerce Product Object

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 514

object$product: WooCommerce Product Object

string$priceTotalHtml: Current HTML code or the price total.

object$prouct: WooCommerce Product Object.

float$displayPrice: Unit Price to be considered for product total.

wdm_csp_price_html

Filter
Filter the price total html to be displayed for the product generated by CSP according to the CSP prices.string $priceTotalHtml Current HTML code or the price total.object $prouct WooCommerce Product Object.float $displayPrice Unit Price to be considered for product total.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 547

string$priceTotalHtml: Current HTML code or the price total.

object$prouct: WooCommerce Product Object.

float$displayPrice: Unit Price to be considered for product total.

object$product: WooCommerce Product Object

wdm_after_csp_total_price_html

Action
This action gets executed after the generation of the 'Product Total' html on the product pages.object $product WooCommerce Product Object

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 555

object$product: WooCommerce Product Object

bool$load: Load CSP Assets or not.

object$post: WordPress post object.

wdm_csp_load_single_product_assets

Filter
This filter can be used to conditionally restrict CSP assets from loading on the product pages.bool $load Load CSP Assets or not.object $post WordPress post object.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 601

bool$load: Load CSP Assets or not.

object$post: WordPress post object.

bool$isStrikethroughEnabled: Strikethrough enabled or not.

object$product: WooCommerce Product Object.

wdm_csp_strikethrough_price_enabled

Filter
This filter can be used to conditionally enable CSP Strikethrough setting on the simple product page.bool $isStrikethroughEnabled Strikethrough enabled or not.object $product WooCommerce Product Object.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 615

bool$isStrikethroughEnabled: Strikethrough enabled or not.

object$product: WooCommerce Product Object.

bool$sameCspForAllVariants: if CSP is same for all the variations.

array$csp_prices: aray of CSP prices for variations.

object$product: WooCommerce Product Object.

wdm_csp_same_csp_for_all_variations

Filter
Filter for the marker $sameCSPForAllVariations, this marker is usedto determine whether to show the price range or a single price or price rangewhen the price for all the variations is same.bool $sameCspForAllVariants if CSP is same for all the variations.array $csp_prices aray of CSP prices for variations.object $product WooCommerce Product Object.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 770

bool$sameCspForAllVariants: if CSP is same for all the variations.

array$csp_prices: aray of CSP prices for variations.

object$product: WooCommerce Product Object.

bool$isQuantityManagedExternally: Wether plugins like WC Min Max Quantity are in use.

object$product: WC Product Object.

wdm_csp_external_qty_limits

Filter
This filter can be used to disable quantity management on product page when external plugin for the same is used.bool $isQuantityManagedExternally Wether plugins like WC Min Max Quantity are in use.object $product WC Product Object.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 788

bool$isQuantityManagedExternally: Wether plugins like WC Min Max Quantity are in use.

object$product: WC Product Object.

bool$includeCSP: default True.

object$product: WC product object.

wdm_csp_calc_variable_prod_price

Filter
The filter can be used to specify Wether to show the CSP prices in variable product price ranges on the shop & archieve pages.bool $includeCSP default True.object $product WC product object.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 815

bool$includeCSP: default True.

object$product: WC product object.

array$prices: array of CSP price pairs for variations

object$product: wc product.

wdm_csp_variations_qty_prices_filter

Filter
This filter can be used to filter out the calculated CSP prices for the variable product variations.array $prices array of CSP price pairs for variationsobject $product wc product.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 877

array$prices: array of CSP price pairs for variations

object$product: wc product.

bool$calculateCSP: default True.

object$product: WC product object.

wdm_csp_calc_simple_prod_price

Filter
This filter can be used to conditionally disable CSP price calculation for the simple product.bool $calculateCSP default True.object $product WC product object.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 913

bool$calculateCSP: default True.

object$product: WC product object.

float$db_price: CSP price.

int$product_id: WooCommerce productID

wdm_apply_csp_product_price

Filter
Filter Calculated CSP price conditionaly for the application in the cart.float $db_price CSP price.int $product_id WooCommerce productID

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 945

float$db_price: CSP price.

int$product_id: WooCommerce productID

float$cspPrice: CSP calculated price for the quantity.

int$product_id: Id of the woocommerce product.

float$price: actual price of the product.

int$quantity: Quantity of the product for which the CSP price is being calculated.

array$csp_prices: List of CSP quantity-price pairs.

array$qtyList: List of quantities for which CSP prices are present.

wdm_get_csp_product_price

Filter
Filter the calculated CSP product price for the specified quantity.float $cspPrice CSP calculated price for the quantity.int $product_id Id of the woocommerce product.float $price actual price of the product.int $quantity Quantity of the product for which the CSP price is being calculated.array $csp_prices List of CSP quantity-price pairs.array $qtyList List of quantities for which CSP prices are present.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 985

float$cspPrice: CSP calculated price for the quantity.

int$product_id: Id of the woocommerce product.

float$price: actual price of the product.

int$quantity: Quantity of the product for which the CSP price is being calculated.

array$csp_prices: List of CSP quantity-price pairs.

array$qtyList: List of quantities for which CSP prices are present.

int$product_id: product id of the WooCommerce Product.

wdm_filter_product_id_for_csp_pricing

Filter
This filter can be useful when it is required to copy CSP pricing of the one product for another,This filter can be used for WPML translations of the product.int $product_id product id of the WooCommerce Product.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 1206

int$product_id: product id of the WooCommerce Product.

array$catPrices: CSP quantity-price pairs.

object$product: WC product object.

wdm_csp_qty_prices_filter

Filter
This filter can be used to filter the CSP prices for the productarray $catPrices CSP quantity-price pairs.object $product WC product object.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 1233

array$catPrices: CSP quantity-price pairs.

object$product: WC product object.

bool$show: Show CSP prices or not.

object$product: WC product object.

wdm_csp_show_quantity_based_price

Filter
The filter can be used to determine wether to show the CSP quantity based prices on the product pages.bool $show Show CSP prices or not.object $product WC product object.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 1416

bool$show: Show CSP prices or not.

object$product: WC product object.

bool$show: defult False.

object$product: WC Product Object.

wdm_csp_show_quantity_based_price_on_shop

Filter
This filter can be used to show the CSP quantity based pricing on the archieve pages.bool $show defult False.object $product WC Product Object.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 1423

bool$show: defult False.

object$product: WC Product Object.

float$regularPrice: Regular price of the product.

wdm_csp_convert_price_value

Filter
Conver the CSP price as per the requirement of the multicurrency extension.float $regularPrice Regular price of the product.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 1446

customer-specific-pricing-for-woocommerce/includes/cart-discount/class-wdm-csp-cd-application.php: 680

float$regularPrice: Regular price of the product.

string$price: Current CSP price HTML

float$cspPrice: CSP price.

object$product: wc product object.

wdm_csp_html_price_format

Filter
Filter CSP price htmlstring $price Current CSP price HTMLfloat $cspPrice CSP price.object $product wc product object.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 1482

string$price: Current CSP price HTML

float$cspPrice: CSP price.

object$product: wc product object.

bool$cspDontCheckSale: Wheter to check if CSP as sale price

object$product: Wc product object.

int$userId: id of the signed in user.

wdm_csp_check_sale

Filter
Filter to conditionally enable/diable CSP as a sale price feature.bool $cspDontCheckSale Wheter to check if CSP as sale priceobject $product Wc product object.int $userId id of the signed in user.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 1740

bool$cspDontCheckSale: Wheter to check if CSP as sale price

object$product: Wc product object.

int$userId: id of the signed in user.

bool$onSale: Is product on sale according to the CSP.

object$product: wc product object.

int$userId: id of the signed in user.

wdm_csp_is_on_sale

Filter
A filter which can be used to conditionally manage showing CSP as a sale price.bool $onSale Is product on sale according to the CSP.object $product wc product object.int $userId id of the signed in user.

customer-specific-pricing-for-woocommerce/includes/class-wdm-apply-usp-product-price.php: 1785

bool$onSale: Is product on sale according to the CSP.

object$product: wc product object.

int$userId: id of the signed in user.

No Arguments

wdm_add_before_csp

Action
This action gets triggered before listing the user specific pricing section on simpleproduct edit pages.

customer-specific-pricing-for-woocommerce/includes/user-specific-pricing/class-wdm-wusp-simple-products-usp.php: 97

No Arguments
No Arguments

wdm_add_after_simple_csp

Action
This action gets triggered after listing the user specific pricing section on simple product edit pages.

customer-specific-pricing-for-woocommerce/includes/user-specific-pricing/class-wdm-wusp-simple-products-usp.php: 128

No Arguments

string$ruleType: Type of the rules being saved

array$wdmSavedRules: array of the saved rules.

wdm_rules_saved

Action
This action gets triggerd on saving the customer specific product pricing rules for variationsstring $ruleType Type of the rules being savedarray $wdmSavedRules array of the saved rules.

customer-specific-pricing-for-woocommerce/includes/user-specific-pricing/class-wdm-wusp-variable-products-usp.php: 521

customer-specific-pricing-for-woocommerce/includes/role-specific-pricing/class-wdm-wusp-simple-products-rsp.php: 228

customer-specific-pricing-for-woocommerce/includes/role-specific-pricing/class-wdm-wusp-variable-products-rsp.php: 425

customer-specific-pricing-for-woocommerce/includes/group-specific-pricing/class-wdm-wusp-simple-products-gsp.php: 157

customer-specific-pricing-for-woocommerce/includes/group-specific-pricing/class-wdm-wusp-variable-products-gsp.php: 497

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-functions.php: 417

customer-specific-pricing-for-woocommerce/includes/category-pricing/class-wdm-wusp-add-category-data.php: 74

customer-specific-pricing-for-woocommerce/includes/category-pricing/class-wdm-wusp-add-category-data.php: 212

customer-specific-pricing-for-woocommerce/includes/category-pricing/class-wdm-wusp-add-category-data.php: 346

string$ruleType: Type of the rules being saved

array$wdmSavedRules: array of the saved rules.

bool$enabled: default True.

wdm_csp_change_variation_price_format

Filter
This filter can be used to enable disable strikethrough on the variation prices when CSP strikethrough setting is enabled.bool $enabled default True.

customer-specific-pricing-for-woocommerce/includes/user-specific-pricing/class-wdm-wusp-variable-products-usp.php: 554

bool$enabled: default True.

bool$enableCustomHtml: Default True.

wdm_csp_custom_html_price_variation_pro

Filter
This filter can be used to enable/disable custom price html format for variationsbool $enableCustomHtml Default True.

customer-specific-pricing-for-woocommerce/includes/user-specific-pricing/class-wdm-wusp-variable-products-usp.php: 633

bool$enableCustomHtml: Default True.

bool|string$name: $nonce_verification nonce name or false to disable nonce verification

csp_export_nonce_verification

Filter
This filter can be used to Override nonce verification for extending import functionality inany third party extension.bool|string $name $nonce_verification nonce name or false to disable nonce verification

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 139

bool|string$name: $nonce_verification nonce name or false to disable nonce verification

string$capability:

csp_get_export_capability

Filter
Filter to define whayt capability is required for the user to be able to access export functionality.string $capability

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 150

string$capability:

string$capability:

csp_export_allowed_user_capability

Filter
Filter to define whayt capability is required for the user to be able to access export functionality.string $capability

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 157

string$capability:

string$capabilityToExport:

csp_can_user_export_csv

Filter
This filter can be used to conditionally allow the user to access the import feature when they do not have the capability to export.string $capabilityToExport

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 164

string$capabilityToExport:

string$capability: wordpress user capability

csp_get_type_selection_user_capability

Filter
Filter to set the user with which capability is allowed for the operation.string $capability wordpress user capability

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 216

string$capability: wordpress user capability

bool$allowAccess: wether to allow the access to the functionality or not.

csp_can_user_get_type_selection

Filter
This filter can be used to conditionally allow user to access the functionality.bool $allowAccess wether to allow the access to the functionality or not.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 222

bool$allowAccess: wether to allow the access to the functionality or not.

string$capability: wordpress user capability

csp_get_search_selection_user_capability

Filter
Filter to set the user with which capability is allowed for the operation.string $capability wordpress user capability

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 254

string$capability: wordpress user capability

bool$allowAccess: wether to allow the access to the functionality or not.

csp_can_user_get_search_selection

Filter
This filter can be used to conditionally allow user to access the functionality.bool $allowAccess wether to allow the access to the functionality or not.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 261

bool$allowAccess: wether to allow the access to the functionality or not.

No Arguments

wdm_after_product_selection

Action
This action is being used for loading the Cart Discounts tab on content on the WP admin settings page,The same hook can be used to add functionality/html above or under the page.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 329

No Arguments

string$capability: wordpress user capability

csp_get_product_price_list_user_capability

Filter
Filter to set the user with which capability is allowed for the operation.string $capability wordpress user capability

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 653

string$capability: wordpress user capability

bool$allowAccess: wether to allow the access to the functionality or not.

csp_can_user_get_product_price_list

Filter
This filter can be used to conditionally allow user to access the functionality.bool $allowAccess wether to allow the access to the functionality or not.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 660

bool$allowAccess: wether to allow the access to the functionality or not.

array$product_detail_list: list of csp products rules.

csp_single_view_product_list

Filter
This filter can be used to filter the list of subrules for the product pricing rule.array $product_detail_list list of csp products rules.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 725

array$product_detail_list: list of csp products rules.

array$product_detail_list: List of CSP product rules.

csp_single_view_product_price_mapping

Filter
This filter can be used to filter the list of subrules for the product pricing rule.array $product_detail_list List of CSP product rules.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 797

array$product_detail_list: List of CSP product rules.

array$titles: array of titles.

csp_single_view_table_titles

Filter
Filter the titles for the product price list table.array $titles array of titles.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 848

array$titles: array of titles.

string$capability: wordpress user capability

csp_save_query_log_user_capability

Filter
Filter to set the user with which capability is allowed for the operation.string $capability wordpress user capability

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 908

string$capability: wordpress user capability

bool$allowAccess: wether to allow the access to the functionality or not.

csp_can_user_save_query_log

Filter
This filter can be used to conditionally allow user to access the functionality.bool $allowAccess wether to allow the access to the functionality or not.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 915

bool$allowAccess: wether to allow the access to the functionality or not.

string$capability: wordpress user capability

csp_get_progress_status_user_capability

Filter
Filter to set the user with which capability is allowed for the operation.string $capability wordpress user capability

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 983

string$capability: wordpress user capability

bool$allowAccess: wether to allow the access to the functionality or not.

csp_can_user_get_progress_status

Filter
This filter can be used to conditionally allow user to access the functionality.bool $allowAccess wether to allow the access to the functionality or not.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 990

bool$allowAccess: wether to allow the access to the functionality or not.

string$capability: wordpress user capability

csp_display_product_price_user_capability

Filter
Filter to set the user with which capability is allowed for the operation.string $capability wordpress user capability

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 1024

string$capability: wordpress user capability

bool$allowAccess: wether to allow the access to the functionality or not.

csp_can_user_display_product_price

Filter
This filter can be used to conditionally allow user to access the functionality.bool $allowAccess wether to allow the access to the functionality or not.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 1031

bool$allowAccess: wether to allow the access to the functionality or not.

string$capability: wordpress user capability

csp_remove_query_log_user_capability

Filter
Filter to set the user with which capability is allowed for the operation.string $capability wordpress user capability

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 1604

string$capability: wordpress user capability

bool$allowAccess: wether to allow the access to the functionality or not.

csp_can_user_remove_query_log

Filter
This filter can be used to conditionally allow user to access the functionality.bool $allowAccess wether to allow the access to the functionality or not.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 1611

bool$allowAccess: wether to allow the access to the functionality or not.

array$csvHeadings: list of CSV headings

wdm_csp_filter_product_list_headings

Filter
This filter can be used to filter the headings of the Export CSV file.array $csvHeadings list of CSV headings

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 1922

array$csvHeadings: list of CSV headings

array$productList: list of productId-productName pairs.

wdm_csp_filter_product_list

Filter
This can be used to filter the productId-productName pair list fetch to be used in the export file.array $productList list of productId-productName pairs.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 1929

array$productList: list of productId-productName pairs.

int$number: number of rescent username searches to store.

csp_search_by_recent_user_selections_max_size

Filter
Search by feature for the users stores the rescent 10 searchases made by the user,this filter can be used change this number.int $number number of rescent username searches to store.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-ajax.php: 2052

int$number: number of rescent username searches to store.

array$entityIdHeader: array of csv headers user_id|role|group_id.

string$ruleType: type of the CSP rules usp|rsp|csp.

wdm_csp_import_global_entity_header

Filter
Filter for the heading of the global discounts rule export CSV.array $entityIdHeader array of csv headers user_id|role|group_id.string $ruleType type of the CSP rules usp|rsp|csp.

customer-specific-pricing-for-woocommerce/includes/import-export/import/class-global-rule-import.php: 76

array$entityIdHeader: array of csv headers user_id|role|group_id.

string$ruleType: type of the CSP rules usp|rsp|csp.

array$entityIdHeader: array of csv headers user_id|role|group_id.

string$ruleType: type of the CSP rules usp|rsp|csp.

wdm_csp_import_cat_entity_header

Filter
Filter for the heading of the category rule export CSV.array $entityIdHeader array of csv headers user_id|role|group_id.string $ruleType type of the CSP rules usp|rsp|csp.

customer-specific-pricing-for-woocommerce/includes/import-export/import/class-category-rule-import.php: 191

array$entityIdHeader: array of csv headers user_id|role|group_id.

string$ruleType: type of the CSP rules usp|rsp|csp.

string|bool$nonce_verification:

csp_import_nonce_verification

Filter
Override nonce verification for extending import functionality in any third party extensionstring|bool $nonce_verification

customer-specific-pricing-for-woocommerce/includes/import-export/import/process-import/class-wdm-abstract-process-csv-batches.php: 32

string|bool$nonce_verification:

string$capability: wordpress user capability

csp_import_allowed_user_capability

Filter
Allow only admin to import csv files, this filter can be used to change the user capability required to access import feature.string $capability wordpress user capability

customer-specific-pricing-for-woocommerce/includes/import-export/import/process-import/class-wdm-abstract-process-csv-batches.php: 43

string$capability: wordpress user capability

string$currentUserCanImport: Current User can import

csp_can_user_import_csv

Filter
This filter can be used to conditionally enabled disable the access to the import feature.string $currentUserCanImport Current User can import

customer-specific-pricing-for-woocommerce/includes/import-export/import/process-import/class-wdm-abstract-process-csv-batches.php: 49

string$currentUserCanImport: Current User can import

bool|array$translatedProductIds: translation product ids if exist or false.

wdm_check_for_product_translations

Filter
Filter to check if the current product has the translations created with WPML, the same rules will be replicated for the translations as well.bool|array $translatedProductIds translation product ids if exist or false.

customer-specific-pricing-for-woocommerce/includes/import-export/import/process-import/class-wdm-abstract-process-csv-batches.php: 133

bool|array$translatedProductIds: translation product ids if exist or false.

int$productId: WooCommerce Product Id.

wdm_csp_import_product_id

Filter
This filter can be used to filter the product Id fetched by the SKU for import feature.int $productId WooCommerce Product Id.

customer-specific-pricing-for-woocommerce/includes/import-export/import/process-import/class-wdm-abstract-process-csv-batches.php: 205

int$productId: WooCommerce Product Id.

string|bool$nonce_verification: default _wpnonce(nonce_name).

csp_import_upload_nonce_verification

Filter
Override nonce verification for extending import functionality in any third party extensionstring|bool $nonce_verification default _wpnonce(nonce_name).

customer-specific-pricing-for-woocommerce/includes/import-export/import/class-wdm-wusp-import.php: 142

string|bool$nonce_verification: default _wpnonce(nonce_name).

string$capability:

csp_import_allowed_user_upload

Filter
Filter to define whayt capability is required for the user to be able to access export functionality.string $capability

customer-specific-pricing-for-woocommerce/includes/import-export/import/class-wdm-wusp-import.php: 154

string$capability:

string$capabilityToExport:

csp_can_user_upload_csv

Filter
This filter can be used to conditionally allow the user to access the import feature when they do not have the capability to export.string $capabilityToExport

customer-specific-pricing-for-woocommerce/includes/import-export/import/class-wdm-wusp-import.php: 161

string$capabilityToExport:

int$batchSize: default 1000.

csp_import_batch_size

Filter
Filter to increase or reduce the batch size defined in CSP rule importint $batchSize default 1000.

customer-specific-pricing-for-woocommerce/includes/import-export/import/class-wdm-wusp-import.php: 356

int$batchSize: default 1000.

int$noOfSimultaneousBatchImport: default 2.

wdm_no_of_import_threads

Filter
Filter number of simultanious batches to use while importing the CSP rules.int $noOfSimultaneousBatchImport default 2.

customer-specific-pricing-for-woocommerce/includes/import-export/import/class-wdm-wusp-import.php: 370

int$noOfSimultaneousBatchImport: default 2.

bool$fileTypeCheck:

wdm_csp_enable_import_file_type_check

Filter
This hook can be used to disable file type check for the import file.by default file type checking is enabled.bool $fileTypeCheck

customer-specific-pricing-for-woocommerce/includes/import-export/import/class-wdm-wusp-import.php: 398

bool$fileTypeCheck:

array$csvHeadings: list of CSV headings

string$ruleType: CSP rule type.

wdm_csp_category_rule_export_heading_filter

Filter
This filter can be used to filter the headings of the category rule Export CSV file.array $csvHeadings list of CSV headingsstring $ruleType CSP rule type.

customer-specific-pricing-for-woocommerce/includes/import-export/export/class-category-rule-export.php: 116

array$csvHeadings: list of CSV headings

string$ruleType: CSP rule type.

array$ruleArray: array of CSP rules.

array$categoryRules: array of category rule objects fetched from the database.

string$ruleTypeId: Rule type identifier.

wdm_csp_category_rule_export_values_filter

Filter
Filter the CSP rules to be included in the category rule export file.array $ruleArray array of CSP rules.array $categoryRules array of category rule objects fetched from the database.string $ruleTypeId Rule type identifier.

customer-specific-pricing-for-woocommerce/includes/import-export/export/class-category-rule-export.php: 186

array$ruleArray: array of CSP rules.

array$categoryRules: array of category rule objects fetched from the database.

string$ruleTypeId: Rule type identifier.

array$csvHeadings: list of CSV headings

string$ruleType: CSP rule type.

wdm_csp_global_rule_export_heading_filter

Filter
This filter can be used to filter the headings of the global discount rule Export CSV file.array $csvHeadings list of CSV headingsstring $ruleType CSP rule type.

customer-specific-pricing-for-woocommerce/includes/import-export/export/class-global-discounts-rule-export.php: 116

array$csvHeadings: list of CSV headings

string$ruleType: CSP rule type.

array$ruleArray: array of CSP rules.

array$categoryRules: array of global rule objects fetched from the database.

string$ruleTypeId: Rule type identifier.

wdm_csp_global_rule_export_values_filter

Filter
Filter the CSP rules to be included in the global rule export file.array $ruleArray array of CSP rules.array $categoryRules array of global rule objects fetched from the database.string $ruleTypeId Rule type identifier.

customer-specific-pricing-for-woocommerce/includes/import-export/export/class-global-discounts-rule-export.php: 185

array$ruleArray: array of CSP rules.

array$categoryRules: array of global rule objects fetched from the database.

string$ruleTypeId: Rule type identifier.

array$user_headings: array of csv headers.

string$exportType: type of the CSP rules.

wdm_csp_filter_product_usp_export_headers

Filter
Filter for the heading of the user based rule export CSV.array $user_headings array of csv headers.string $exportType type of the CSP rules.

customer-specific-pricing-for-woocommerce/includes/import-export/export/process-export/class-wdm-wusp-user-specific-pricing-export.php: 41

array$user_headings: array of csv headers.

string$exportType: type of the CSP rules.

array$formattedResult: list of csp rule arrays.

string$exportType: type pf the CSP rules

wdm_csp_filter_product_usp_export_fields

Filter
Filter for changing the rules in the role based rules export file, this filter can be used to add/remove new columns from the export files.array $formattedResult list of csp rule arrays.string $exportType type pf the CSP rules

customer-specific-pricing-for-woocommerce/includes/import-export/export/process-export/class-wdm-wusp-user-specific-pricing-export.php: 118

array$formattedResult: list of csp rule arrays.

string$exportType: type pf the CSP rules

array$role_heading: array of csv headers.

string$exportType: type of the CSP rules.

wdm_csp_filter_product_rsp_export_headers

Filter
Filter for the heading of the role based rule export CSV.array $role_heading array of csv headers.string $exportType type of the CSP rules.

customer-specific-pricing-for-woocommerce/includes/import-export/export/process-export/class-wdm-wusp-role-specific-pricing-export.php: 34

array$role_heading: array of csv headers.

string$exportType: type of the CSP rules.

array$formattedResult: list of csp rule arrays.

string$exportType: type pf the CSP rules

wdm_csp_filter_product_rsp_export_fields

Filter
Filter for changing the rules in the role based rules export file, this filter can be used to add/remove new columns from the export files.array $formattedResult list of csp rule arrays.string $exportType type pf the CSP rules

customer-specific-pricing-for-woocommerce/includes/import-export/export/process-export/class-wdm-wusp-role-specific-pricing-export.php: 84

array$formattedResult: list of csp rule arrays.

string$exportType: type pf the CSP rules

array$group_headings: array of csv headers.

string$exportType: type of the CSP rules.

wdm_csp_filter_product_gsp_export_headers

Filter
Filter for the heading of the group rule export CSV.array $group_headings array of csv headers.string $exportType type of the CSP rules.

customer-specific-pricing-for-woocommerce/includes/import-export/export/process-export/class-wdm-wusp-group-specific-pricing-export.php: 40

array$group_headings: array of csv headers.

string$exportType: type of the CSP rules.

array$formattedResult: list of csp rule arrays.

string$exportType: type pf the CSP rules

wdm_csp_filter_product_gsp_export_fields

Filter
Filter for changing the rules in the group rules export file, this filter can be used to add/remove new columns from the export files.array $formattedResult list of csp rule arrays.string $exportType type pf the CSP rules

customer-specific-pricing-for-woocommerce/includes/import-export/export/process-export/class-wdm-wusp-group-specific-pricing-export.php: 92

array$formattedResult: list of csp rule arrays.

string$exportType: type pf the CSP rules

No Arguments

show_export

Action
This action is internally used to show the export page options on the CSP Admin

customer-specific-pricing-for-woocommerce/includes/import-export/class-wdm-wusp-import-export.php: 68

No Arguments
No Arguments

show_import

Action
This action is internally used to show the import page options on the CSP Admin

customer-specific-pricing-for-woocommerce/includes/import-export/class-wdm-wusp-import-export.php: 101

No Arguments

bool$disabled: default True.

csp-archive-disable-price-sorting

Filter
This filter can be used to enable/disable price sorting in csp special shop page.the filtering is disabled by default as woocommerce uses product meta for quicker price sorting,the same cannot be implemented using CSP price or it will be slower.bool $disabled default True.

customer-specific-pricing-for-woocommerce/includes/products-archive/class-product-archive.php: 30

bool$disabled: default True.

bool$globalDiscountsActive: does the global discounts feature of CSP active.

csp_archive_show_products_with_global_discounts

Filter
This filter can be used to disable showing the products with global discounts on the special shop page.bool $globalDiscountsActive does the global discounts feature of CSP active.

customer-specific-pricing-for-woocommerce/includes/products-archive/class-product-archive.php: 79

bool$globalDiscountsActive: does the global discounts feature of CSP active.

bool$show: default True.

int$userId: Id of the user for whom special shop page is being prepared.

array$roles: user roles to which the user belong.

array$userGroups: user groups of the user.

csp_archive_show_product_usp

Filter
This filter can be used to disable/enable shoowing the products discounted with user specific pricing on the special shop page.bool $show default True.int $userId Id of the user for whom special shop page is being prepared.array $roles user roles to which the user belong.array $userGroups user groups of the user.

customer-specific-pricing-for-woocommerce/includes/products-archive/csp-data/class-csp-applied-product-ids.php: 133

bool$show: default True.

int$userId: Id of the user for whom special shop page is being prepared.

array$roles: user roles to which the user belong.

array$userGroups: user groups of the user.

bool$show: default True.

int$userId: Id of the user for whom special shop page is being prepared.

array$roles: user roles to which the user belong.

array$userGroups: user groups of the user.

csp_archive_show_product_rsp

Filter
This filter can be used to disable/enable shoowing the products discounted with role specific pricing on the special shop page.bool $show default True.int $userId Id of the user for whom special shop page is being prepared.array $roles user roles to which the user belong.array $userGroups user groups of the user.

customer-specific-pricing-for-woocommerce/includes/products-archive/csp-data/class-csp-applied-product-ids.php: 157

bool$show: default True.

int$userId: Id of the user for whom special shop page is being prepared.

array$roles: user roles to which the user belong.

array$userGroups: user groups of the user.

bool$show: default True.

int$userId: Id of the user for whom special shop page is being prepared.

array$roles: user roles to which the user belong.

array$userGroups: user groups of the user.

csp_archive_show_product_gsp

Filter
This filter can be used to disable/enable shoowing the products discounted with group specific pricing on the special shop page.bool $show default True.int $userId Id of the user for whom special shop page is being prepared.array $roles user roles to which the user belong.array $userGroups user groups of the user.

customer-specific-pricing-for-woocommerce/includes/products-archive/csp-data/class-csp-applied-product-ids.php: 181

bool$show: default True.

int$userId: Id of the user for whom special shop page is being prepared.

array$roles: user roles to which the user belong.

array$userGroups: user groups of the user.

bool$show: default True.

int$userId: Id of the user for whom special shop page is being prepared.

array$roles: user roles to which the user belong.

array$userGroups: user groups of the user.

csp_archive_show_cat_usp

Filter
This filter can be used to disable/enable shoowing the products discounted with user specific category pricing on the special shop page.bool $show default True.int $userId Id of the user for whom special shop page is being prepared.array $roles user roles to which the user belong.array $userGroups user groups of the user.

customer-specific-pricing-for-woocommerce/includes/products-archive/csp-data/class-csp-applied-product-ids.php: 207

bool$show: default True.

int$userId: Id of the user for whom special shop page is being prepared.

array$roles: user roles to which the user belong.

array$userGroups: user groups of the user.

bool$show: default True.

int$userId: Id of the user for whom special shop page is being prepared.

array$roles: user roles to which the user belong.

array$userGroups: user groups of the user.

csp_archive_show_cat_rsp

Filter
This filter can be used to disable/enable shoowing the products discounted with role specific category pricing on the special shop page.bool $show default True.int $userId Id of the user for whom special shop page is being prepared.array $roles user roles to which the user belong.array $userGroups user groups of the user.

customer-specific-pricing-for-woocommerce/includes/products-archive/csp-data/class-csp-applied-product-ids.php: 231

bool$show: default True.

int$userId: Id of the user for whom special shop page is being prepared.

array$roles: user roles to which the user belong.

array$userGroups: user groups of the user.

bool$show: default True.

int$userId: Id of the user for whom special shop page is being prepared.

array$roles: user roles to which the user belong.

array$userGroups: user groups of the user.

csp_archive_show_cat_gsp

Filter
This filter can be used to disable/enable shoowing the products discounted with group specific category pricing on the special shop page.bool $show default True.int $userId Id of the user for whom special shop page is being prepared.array $roles user roles to which the user belong.array $userGroups user groups of the user.

customer-specific-pricing-for-woocommerce/includes/products-archive/csp-data/class-csp-applied-product-ids.php: 255

bool$show: default True.

int$userId: Id of the user for whom special shop page is being prepared.

array$roles: user roles to which the user belong.

array$userGroups: user groups of the user.

string$text: default 'Cart Discount'.

string$cdOfferText: text containing details of the order.

array$aRule: Rule which is used for applygin the cart discount.

csp-cd-filter-cart-discount-label-text

Filter
Filter can be used to change the cart discount text.string $text default 'Cart Discount'.string $cdOfferText text containing details of the order.array $aRule Rule which is used for applygin the cart discount.

customer-specific-pricing-for-woocommerce/includes/cart-discount/class-wdm-csp-cd-application.php: 91

string$text: default 'Cart Discount'.

string$cdOfferText: text containing details of the order.

array$aRule: Rule which is used for applygin the cart discount.

string$offerHtml: Existing Html content for the offer display.

string$buttonText: Text to be shown on the button.

string$shopMoreLink: The link to redirect user to shop more products(default: WC shop page link).

wdm_csp_filter_cd_congratulations_section

Filter
This filter can be used to filter the Cart offer text htmlstring $offerHtml Existing Html content for the offer display.string $buttonText Text to be shown on the button.string $shopMoreLink The link to redirect user to shop more products(default: WC shop page link).

customer-specific-pricing-for-woocommerce/includes/cart-discount/class-wdm-csp-cd-application.php: 143

string$offerHtml: Existing Html content for the offer display.

string$buttonText: Text to be shown on the button.

string$shopMoreLink: The link to redirect user to shop more products(default: WC shop page link).

bool$enabled: true|false (default: true).

csp-cd-mention-max-discount-applicable

Filter
This filter can be used to disable showing the maximum applicable discount amount & text in the offers modalbool $enabled true|false (default: true).

customer-specific-pricing-for-woocommerce/includes/cart-discount/class-wdm-csp-cd-application.php: 218

bool$enabled: true|false (default: true).

No Arguments

csp_add_custom_message_in_cart_discount_modal

Action
This hook executes after the grneration of the cart modal & can be used toadd custom notice/message/html in the cart discounts modal.

customer-specific-pricing-for-woocommerce/includes/cart-discount/class-wdm-csp-cd-application.php: 255

No Arguments

array$rules: array of applicable subrules.

string$rulesType: Type of the subrules.

csp_filter_cart_discount_limits

Filter
This filter can be used to filter the cart discount rules applicable for the user conditionally.array $rules array of applicable subrules.string $rulesType Type of the subrules.

customer-specific-pricing-for-woocommerce/includes/cart-discount/class-wdm-csp-cd-application.php: 596

array$rules: array of applicable subrules.

string$rulesType: Type of the subrules.

float$thresholdValue:

csp_cd_threshold_percent

Filter
This filter can be used to filter out the offer display threshold % of the cart discounts.eg. conditionally change the threshold for different users.float $thresholdValue

customer-specific-pricing-for-woocommerce/includes/cart-discount/data-store/class-feature-settings.php: 110

float$thresholdValue:

bool$changeTotalAsPerTheCSP: true|false (default: true).

object$product: WooCommerce product object.

object$orderItem: Item to be included in the manual order.

int$orderItemId: Id of the Item being added in the cart.

wisdm_csp_filter_woocommerce_admin_order_item_values

Filter
This filter can be used to enable disable the CSP pricing the WooCommerce Manual ordersbool $changeTotalAsPerTheCSP true|false (default: true).object $product WooCommerce product object.object $orderItem Item to be included in the manual order.int $orderItemId Id of the Item being added in the cart.

customer-specific-pricing-for-woocommerce/includes/dashboard-orders/class-wdm-customer-specific-pricing-new-order.php: 100

bool$changeTotalAsPerTheCSP: true|false (default: true).

object$product: WooCommerce product object.

object$orderItem: Item to be included in the manual order.

int$orderItemId: Id of the Item being added in the cart.

No Arguments

csp-before-dashboard-order-change-total-subtotal

Action
This action gets executed before CSP changes dashboard order subtotal.

customer-specific-pricing-for-woocommerce/includes/dashboard-orders/class-wdm-customer-specific-pricing-new-order.php: 110

No Arguments
No Arguments

csp-after-dashboard-order-change-total-subtotal

Action
This action gets executed after CSP changes dashboard order subtotal.

customer-specific-pricing-for-woocommerce/includes/dashboard-orders/class-wdm-customer-specific-pricing-new-order.php: 138

No Arguments
No Arguments

csp-before-dashboard-item-price-list

Action
This action executes right before csp calculates price pairs for the product in the dashboard order item.

customer-specific-pricing-for-woocommerce/includes/dashboard-orders/class-wdm-customer-specific-pricing-new-order.php: 166

No Arguments
No Arguments

csp-after-dashboard-item-price-list

Action
This action executes right after csp calculates price pairs for the product in the dashboard order item.

customer-specific-pricing-for-woocommerce/includes/dashboard-orders/class-wdm-customer-specific-pricing-new-order.php: 193

No Arguments

string$capability:

csp_get_customers_id_capability

Filter
Filter to define whayt capability is required for the user to be able to access export functionality.string $capability

customer-specific-pricing-for-woocommerce/includes/dashboard-orders/class-wdm-customer-specific-pricing-new-order.php: 262

string$capability:

string$capabilityToExport:

csp_can_user_get_customers_id

Filter
This filter can be used to conditionally allow the user to access the import feature when they do not have the capability to export.string $capabilityToExport

customer-specific-pricing-for-woocommerce/includes/dashboard-orders/class-wdm-customer-specific-pricing-new-order.php: 269

string$capabilityToExport:

float$price: Current product price.

int$productId: Id of the woocommerce product.

int$quantity: quantity for which CSP price is required.

int$userId: user Id of the user for whom the CSP is required.

wdm_get_csp_for_product_qty

Filter
Get CSP price for the product quantity.float $price Current product price.int $productId Id of the woocommerce product.int $quantity quantity for which CSP price is required.int $userId user Id of the user for whom the CSP is required.

customer-specific-pricing-for-woocommerce/includes/class-wdm-product-tables.php: 37

float$price: Current product price.

int$productId: Id of the woocommerce product.

int$quantity: quantity for which CSP price is required.

int$userId: user Id of the user for whom the CSP is required.

string$capability: wordpress capability of the user default, manage_options(Admin).

wisdm_csp_menu_page_capability

Filter
Determine which user should be capable of accessing the CSP admin menu page.string $capability wordpress capability of the user default, manage_options(Admin).

customer-specific-pricing-for-woocommerce/includes/class-wdm-single-view-tabs.php: 109

string$capability: wordpress capability of the user default, manage_options(Admin).

No Arguments

csp_single_view_search_settings

Action
This action is being used for loading the search by & delete tab on content on the WP admin settings page,The same hook can be used to add functionality/html above or under the search by & delete page.

customer-specific-pricing-for-woocommerce/includes/class-wdm-single-view-tabs.php: 229

No Arguments
No Arguments

csp_single_view_promotions

Action
This action is being used for loading the promotions & whats new tab on content on the WP admin settings page,The same hook can be used to add functionality/html above or under the page.

customer-specific-pricing-for-woocommerce/includes/class-wdm-single-view-tabs.php: 236

No Arguments
No Arguments

csp_general_settings

Action
This action is being used for loading the CSP General Settings tab on content on the WP admin settings page,The same hook can be used to add functionality/html above or under the page.

customer-specific-pricing-for-woocommerce/includes/class-wdm-single-view-tabs.php: 243

No Arguments
No Arguments

csp_cart_discounts_tab

Action
This action is being used for loading the Cart Discounts tab on content on the WP admin settings page,The same hook can be used to add functionality/html above or under the page.

customer-specific-pricing-for-woocommerce/includes/class-wdm-single-view-tabs.php: 252

No Arguments
No Arguments

csp_global_discounts_tab

Action
This action is being used for loading the Global Discounts tab on content on the WP admin settings page,The same hook can be used to add functionality/html above or under the page.

customer-specific-pricing-for-woocommerce/includes/class-wdm-single-view-tabs.php: 261

No Arguments
No Arguments

csp_feedback_tab

Action
This action is being used for loading the Feedback Submenu page content on the WP admin settings,The same hook can be used to add functionality/html above or under the page.

customer-specific-pricing-for-woocommerce/includes/class-wdm-single-view-tabs.php: 313

No Arguments

float$salePrice: Current sale price of the product.

int$productId: Id of the WooCommerce product for which the sale price is fetched.

wdm_csp_sale_price

Filter
This filter can be used to filter the sale price being used by the CSP for price calculations.float $salePrice Current sale price of the product.int $productId Id of the WooCommerce product for which the sale price is fetched.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-functions.php: 699

float$salePrice: Current sale price of the product.

int$productId: Id of the WooCommerce product for which the sale price is fetched.

string$sku: Current SKU for the product.

object$product: WooCommerce Product object.

csp_product_sku

Filter
This filter can be used to filter/change the product SKU fetched for the product using product Idstring $sku Current SKU for the product.object $product WooCommerce Product object.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-functions.php: 1247

string$sku: Current SKU for the product.

object$product: WooCommerce Product object.

bool$enableRuleManipulationFromProductEditPage: - true|false.

wdm_csp_usp_update_from_simple_product_edit_page

Filter
This filter can be used to stop manipulation of the CSP user specific pricing rules from the simple product edit pagebool $enableRuleManipulationFromProductEditPage - true|false.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-functions.php: 1487

bool$enableRuleManipulationFromProductEditPage: - true|false.

bool$enableRuleManipulationFromProductEditPage: - true|false.

wdm_csp_rsp_update_from_simple_product_edit_page

Filter
This filter can be used to stop manipulation of the CSP role specific pricing rules from the simple product edit pagebool $enableRuleManipulationFromProductEditPage - true|false.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-functions.php: 1504

bool$enableRuleManipulationFromProductEditPage: - true|false.

bool$enableRuleManipulationFromProductEditPage: - true|false.

wdm_csp_gsp_update_from_simple_product_edit_page

Filter
This filter can be used to stop manipulation of the CSP group specific pricing rules from the simple product edit pagebool $enableRuleManipulationFromProductEditPage - true|false.

customer-specific-pricing-for-woocommerce/includes/class-wdm-wusp-functions.php: 1521

bool$enableRuleManipulationFromProductEditPage: - true|false.

No Arguments

csp_show_user_data

Action
/This action is used internally to list the category specific user rules on the rule edit page.

customer-specific-pricing-for-woocommerce/includes/category-pricing/category-template.php: 118

No Arguments
No Arguments

csp_show_role_data

Action
This action is used internally to list the category specific role based rules on the rule edit page.

customer-specific-pricing-for-woocommerce/includes/category-pricing/category-template.php: 140

No Arguments
No Arguments

csp_show_group_data

Action
This action is used internally to list the category specific group based rules on the rule edit page.

customer-specific-pricing-for-woocommerce/includes/category-pricing/category-template.php: 162

No Arguments

array$price: array of CSP rules fetched from the database.

int$currentUserId: Id of the WP user for which the rules are fetched.

array$catArray: Array of category slugs.

wdm_csp_filter_usp_rules_for_categories

Filter
This filter can be used to filter the category based user specific pricing rules applicable to the product for the user.this filter is also used internally.array $price array of CSP rules fetched from the database.int $currentUserId Id of the WP user for which the rules are fetched.array $catArray Array of category slugs.

customer-specific-pricing-for-woocommerce/includes/category-pricing/class-wdm-wusp-get-category-data.php: 212

array$price: array of CSP rules fetched from the database.

int$currentUserId: Id of the WP user for which the rules are fetched.

array$catArray: Array of category slugs.

array$price: array of CSP rules fetched from the database.

array$userRoles: array of user role slugs for which the rules are fetched.

array$catArray: Array of category slugs.

wdm_csp_filter_rsp_rules_for_categories

Filter
This filter can be used to filter the category based role specific pricing rules applicable to the product for the user.this filter is also used internally.array $price array of CSP rules fetched from the database.array $userRoles array of user role slugs for which the rules are fetched.array $catArray Array of category slugs.

customer-specific-pricing-for-woocommerce/includes/category-pricing/class-wdm-wusp-get-category-data.php: 347

array$price: array of CSP rules fetched from the database.

array$userRoles: array of user role slugs for which the rules are fetched.

array$catArray: Array of category slugs.

array$price: array of CSP rules fetched from the database.

array$userGroupIds: array of user group Ids for which the rules are fetched.

array$catArray: Array of category slugs.

wdm_csp_filter_gsp_rules_for_categories

Filter
This filter can be used to filter the category based group specific pricing rules applicable to the product for the user.this filter is also used internally.array $price array of CSP rules fetched from the database.array $userGroupIds array of user group Ids for which the rules are fetched.array $catArray Array of category slugs.

customer-specific-pricing-for-woocommerce/includes/category-pricing/class-wdm-wusp-get-category-data.php: 491

array$price: array of CSP rules fetched from the database.

array$userGroupIds: array of user group Ids for which the rules are fetched.

array$catArray: Array of category slugs.

int$productId: WC product Id.

cspapi_product_id_for_hash

Filter
Filter for productId in the API requestint $productId WC product Id.

customer-specific-pricing-for-woocommerce/includes/csp-api/cspapi-functions.php: 54

int$productId: WC product Id.

int$entity: user|role|group.

cspapi_customer_entity_for_hash

Filter
Filter for entity in the API requestint $entity user|role|group.

customer-specific-pricing-for-woocommerce/includes/csp-api/cspapi-functions.php: 60

int$entity: user|role|group.

int$qty: quantity in the CSP rule.

cspapi_quantity_for_hash

Filter
Filter for quantity in the API requestint $qty quantity in the CSP rule.

customer-specific-pricing-for-woocommerce/includes/csp-api/cspapi-functions.php: 66

int$qty: quantity in the CSP rule.

int$price: flat price or % discount value.

cspapi_price_for_hash

Filter
Filter for discounted price or % discount value in the API requestint $price flat price or % discount value.

customer-specific-pricing-for-woocommerce/includes/csp-api/cspapi-functions.php: 80

int$price: flat price or % discount value.

bool$isHashValid: true|false

string$clientHash: MD5 hash value shared by the client.

string$serverHash: MD5 hash generated by the server to validate the rule.

array$item: CSP rule data submited in API request.

cspapi_is_api_hash_valid

Filter
This filter can be used to enable/disable hash validation in CSP rest API.bool $isHashValid true|falsestring $clientHash MD5 hash value shared by the client.string $serverHash MD5 hash generated by the server to validate the rule.array $item CSP rule data submited in API request.

customer-specific-pricing-for-woocommerce/includes/csp-api/cspapi-functions.php: 143

bool$isHashValid: true|false

string$clientHash: MD5 hash value shared by the client.

string$serverHash: MD5 hash generated by the server to validate the rule.

array$item: CSP rule data submited in API request.

array$cspData: Data submited by API request.

array$item: CSP Rule data.

string$key: key for which data value is being retrived.

cspapi_default_csp_data_if_missing

Filter
This filter can be use to filter out the CSP rule data submitted in the API request.array $cspData Data submited by API request.array $item CSP Rule data.string $key key for which data value is being retrived.

customer-specific-pricing-for-woocommerce/includes/csp-api/cspapi-functions.php: 205

array$cspData: Data submited by API request.

array$item: CSP Rule data.

string$key: key for which data value is being retrived.

object$response: responce generated by API callback.

object$request: API request.

cspapi_modify_response

Filter
This filter can be used to modify the APi response body.object $response responce generated by API callback.object $request API request.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-abstract-csp-mappings.php: 53

object$response: responce generated by API callback.

object$request: API request.

array$userRoles: array of alloweded user roles.

wdm_csp_api_roles_with_rule_delete_permission

Filter
This filter can be used to allow/disallow users with specific capabilitys to perform delete operations using CSP API.array $userRoles array of alloweded user roles.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-abstract-csp-mappings.php: 139

array$userRoles: array of alloweded user roles.

string$failedMessage: for the request.

string$key: key of the request Item.

array$item: rule data for which the failed message is generated.

cspapi_failed_message

Filter
This filter can be used to modify the failed message responce from API.string $failedMessage for the request.string $key key of the request Item.array $item rule data for which the failed message is generated.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-abstract-csp-mappings.php: 195

string$failedMessage: for the request.

string$key: key of the request Item.

array$item: rule data for which the failed message is generated.

string$successMessage: for the request.

string$key: key of the request Item.

array$item: rule data for which the success message is generated.

cspapi_success_message

Filter
This filter can be used to modify the success message responce from API.string $successMessage for the request.string $key key of the request Item.array $item rule data for which the success message is generated.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-abstract-csp-mappings.php: 219

string$successMessage: for the request.

string$key: key of the request Item.

array$item: rule data for which the success message is generated.

array$response: Response data generated by the API callback.

array$request: CSP API request data.

cspapi_create_gsp_response

Filter
Filter to filter out the Generated CSP API response.array $response Response data generated by the API callback.array $request CSP API request data.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-group-based.php: 181

array$response: Response data generated by the API callback.

array$request: CSP API request data.

array$response: responce prepared by the API callback

array$request: CSP API request data

cspapi_delete_gsp_response

Filter
Filter for API delete request response for group specific pricing rules, the same can be used to filter the API delete operation responseor to take certain actions post the delete request execution based on the results.array $response responce prepared by the API callbackarray $request CSP API request data

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-group-based.php: 239

array$response: responce prepared by the API callback

array$request: CSP API request data

array$response: responce prepared by the API callback

array$request: CSP API request data

cspapi_get_gsp_for_group_response

Filter
Filter for CSP API get request response for the group specific pricing.array $response responce prepared by the API callbackarray $request CSP API request data

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-group-based.php: 268

array$response: responce prepared by the API callback

array$request: CSP API request data

array$response: responce prepared by the API callback

array$request: CSP API request data

cspapi_get_gsp_for_group_by_name_response

Filter
Filter for CSP API get request response for the group specific pricing by group name.array $response responce prepared by the API callbackarray $request CSP API request data

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-group-based.php: 287

array$response: responce prepared by the API callback

array$request: CSP API request data

array$response: responce prepared by the API callback

array$request: CSP API request data

cspapi_get_gsp_for_group_by_product_id_response

Filter
Filter for CSP API get request response for the group specific pricing by product Id.array $response responce prepared by the API callbackarray $request CSP API request data

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-group-based.php: 308

array$response: responce prepared by the API callback

array$request: CSP API request data

array$response: responce prepared by the API callback

array$request: CSP API request data

cspapi_get_gsp_for_group_product_response

Filter
Filter for CSP API get request response for the group specific pricing by group name & product Id.array $response responce prepared by the API callbackarray $request CSP API request data

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-group-based.php: 343

array$response: responce prepared by the API callback

array$request: CSP API request data

array$response: responce prepared by the API callback

array$request: CSP API request data

cspapi_get_gsp_for_product_response

Filter
Filter for CSP API get request response for the group specific pricing by product Id.array $response responce prepared by the API callbackarray $request CSP API request data

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-group-based.php: 369

array$response: responce prepared by the API callback

array$request: CSP API request data

array$response: responce prepared by the API callback

array: $gspData GSP data for a particular group/ product.

bool$singleProductResponse: True if '$gspData' contains pricing

cspapi_modify_gsp_data_group_response_format

Filter
Filter for CSP API response format for the group specific pricing.array $response responce prepared by the API callbackarray $gspData GSP data for a particular group/ product.bool $singleProductResponse True if '$gspData' contains pricingabout a single product. False if '$gspData'contains pricing for all products about aparticular group.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-group-based.php: 444

array$response: responce prepared by the API callback

array: $gspData GSP data for a particular group/ product.

bool$singleProductResponse: True if '$gspData' contains pricing

array$response: responce prepared by the API callback

array: $gspData GSP data for a particular group/ product.

cspapi_modify_gsp_data_product_response_format

Filter
Filter for CSP API response format for the group specific pricing.array $response responce prepared by the API callbackarray $gspData GSP data for a particular group/ product.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-group-based.php: 487

array$response: responce prepared by the API callback

array: $gspData GSP data for a particular group/ product.

bool$result whether: group mapping exists in 'wusp_group_product_price_mapping' table.

int$groupId Id: of the WP user group.

int$productId: Id of the WC product.

int$minQty: Minimum quantity field in the rule.

cspapi_is_direct_group_mapping_exists

Filter
Filter to changeg the result for whether group mapping exists in 'wusp_group_product_price_mapping' table.bool $result whether group mapping exists in 'wusp_group_product_price_mapping' table.int $groupId Id of the WP user group.int $productId Id of the WC product.int $minQty Minimum quantity field in the rule.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-group-based.php: 519

bool$result whether: group mapping exists in 'wusp_group_product_price_mapping' table.

int$groupId Id: of the WP user group.

int$productId: Id of the WC product.

int$minQty: Minimum quantity field in the rule.

object$response: responce data generated by API callback.

object$request: API request data.

cspapi_create_csp_response

Filter
Filter the API response data for the newly created rules by API callbackobject $response responce data generated by API callback.object $request API request data.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-customer-based.php: 205

object$response: responce data generated by API callback.

object$request: API request data.

object$response: responce data generated by API callback.

object$request: API request data.

cspapi_delete_csp_response

Filter
Filter the API response data for the deleted rules by API callbackobject $response responce data generated by API callback.object $request API request data.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-customer-based.php: 265

object$response: responce data generated by API callback.

object$request: API request data.

object$response: responce data generated by API callback.

object$request: API request data.

cspapi_get_csp_for_user_response

Filter
Filter the API response data for the get all rules by user id query in API callbackobject $response responce data generated by API callback.object $request API request data.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-customer-based.php: 296

object$response: responce data generated by API callback.

object$request: API request data.

object$response: responce data generated by API callback.

object$request: API request data.

cspapi_get_csp_for_user_by_email_response

Filter
Filter the API response data for the get user rules by user emails query in API callbackobject $response responce data generated by API callback.object $request API request data.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-customer-based.php: 322

object$response: responce data generated by API callback.

object$request: API request data.

object$response: responce data generated by API callback.

object$request: API request data.

cspapi_get_csp_for_user_by_id_response

Filter
Filter the API response data for the get user rules by user id query in API callbackobject $response responce data generated by API callback.object $request API request data.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-customer-based.php: 342

object$response: responce data generated by API callback.

object$request: API request data.

object$response: responce data generated by API callback.

object$request: API request data.

cspapi_get_csp_for_user_product_by_email_response

Filter
Filter the API response data for the get user rules for product by user email query in API callbackobject $response responce data generated by API callback.object $request API request data.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-customer-based.php: 370

object$response: responce data generated by API callback.

object$request: API request data.

object$response: responce data generated by API callback.

object$request: API request data.

cspapi_get_csp_for_user_product_by_id_response

Filter
Filter the API response data for the get user rules on product by product id query in API callbackobject $response responce data generated by API callback.object $request API request data.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-customer-based.php: 392

object$response: responce data generated by API callback.

object$request: API request data.

object$response: responce data generated by API callback.

object$request: API request data.

cspapi_get_csp_for_user_product_response

Filter
Filter the API response data for the get user rules by product id query in API callbackobject $response responce data generated by API callback.object $request API request data.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-customer-based.php: 427

object$response: responce data generated by API callback.

object$request: API request data.

object$response: responce data generated by API callback.

object$request: API request data.

cspapi_get_csp_for_product_response

Filter
Filter the API response data for the get all the rules by product id query in API callbackobject $response responce data generated by API callback.object $request API request data.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-customer-based.php: 455

object$response: responce data generated by API callback.

object$request: API request data.

array$response: array of responce objects for API requests

array$cspData: CSP data for a particular user/ product.

bool$singleProductResponse: True if '$cspData' contains pricing

cspapi_modify_csp_data_user_response_format

Filter
Filter the CSP API request response dataarray $response array of responce objects for API requestsarray $cspData CSP data for a particular user/ product.bool $singleProductResponse True if '$cspData' contains pricing about a single product. False if '$cspData' contains pricing for all products about a particular user.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-customer-based.php: 529

array$response: array of responce objects for API requests

array$cspData: CSP data for a particular user/ product.

bool$singleProductResponse: True if '$cspData' contains pricing

array$response: Array containing formatted CSP data for API response.

array$cspData: Array containing all pricing mappings of a

cspapi_modify_csp_data_product_response_format

Filter
Filter for Formatted API responce generated by CSP API,array $response Array containing formatted CSP data for API response.array $cspData Array containing all pricing mappings of aspecific product.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-customer-based.php: 573

array$response: Array containing formatted CSP data for API response.

array$cspData: Array containing all pricing mappings of a

bool$result whether: customer mapping exists in 'wusp_user_pricing' table.

int$userId Id: of the WP user specified in the API request

int$productId: Id of the WC product.

int$minQty: Minimum quantity field in the rule.

cspapi_is_direct_customer_mapping_exists

Filter
Filter to changeg the result for whether customer mapping exists in 'wusp_user_pricing' table.bool $result whether customer mapping exists in 'wusp_user_pricing' table.int $userId Id of the WP user specified in the API requestint $productId Id of the WC product.int $minQty Minimum quantity field in the rule.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-customer-based.php: 605

bool$result whether: customer mapping exists in 'wusp_user_pricing' table.

int$userId Id: of the WP user specified in the API request

int$productId: Id of the WC product.

int$minQty: Minimum quantity field in the rule.

array$response: Response data generated by the API callback.

array$request: CSP API request data.

cspapi_create_rsp_response

Filter
Filter to filter out the Generated CSP API response.array $response Response data generated by the API callback.array $request CSP API request data.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-role-based.php: 182

array$response: Response data generated by the API callback.

array$request: CSP API request data.

array$response: responce prepared by the API callback

array$request: CSP API request data

cspapi_delete_rsp_response

Filter
Filter for API delete request response for role specific pricing rules, the same can be used to filter the API delete operation responseor to take certain actions post the delete request execution based on the results.array $response responce prepared by the API callbackarray $request CSP API request data

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-role-based.php: 244

array$response: responce prepared by the API callback

array$request: CSP API request data

array$response: responce prepared by the API callback

array$request: CSP API request data

cspapi_get_rsp_for_role_response

Filter
Filter for CSP API get request response for the role specific pricing.array $response responce prepared by the API callbackarray $request CSP API request data

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-role-based.php: 275

array$response: responce prepared by the API callback

array$request: CSP API request data

array$response: responce prepared by the API callback

array$request: CSP API request data

cspapi_get_rsp_for_role_by_name_response

Filter
Filter for CSP API get request response for the role specific pricing by role slug.array $response responce prepared by the API callbackarray $request CSP API request data

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-role-based.php: 295

array$response: responce prepared by the API callback

array$request: CSP API request data

array$response: responce prepared by the API callback

array$request: CSP API request data

cspapi_get_rsp_for_role_by_product_id_response

Filter
Filter for CSP API get request response for the role specific pricing by product Id.array $response responce prepared by the API callbackarray $request CSP API request data

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-role-based.php: 317

array$response: responce prepared by the API callback

array$request: CSP API request data

array$response: responce prepared by the API callback

array$request: CSP API request data

cspapi_get_rsp_for_role_product_response

Filter
Filter for CSP API get request response for the group specific pricing by role-slug & product Id.array $response responce prepared by the API callbackarray $request CSP API request data

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-role-based.php: 353

array$response: responce prepared by the API callback

array$request: CSP API request data

array$response: responce prepared by the API callback

array$request: CSP API request data

cspapi_get_rsp_for_product_response

Filter
Filter for CSP API get request response for the role specific pricing by product Id.array $response responce prepared by the API callbackarray $request CSP API request data

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-role-based.php: 381

array$response: responce prepared by the API callback

array$request: CSP API request data

array$response: responce prepared by the API callback

array$rspData: RSP data for a particular role/ product.

bool$singleProductResponse: True if '$rspData' contains pricing

cspapi_modify_rsp_data_role_response_format

Filter
Filter for CSP API response format for the role specific pricing.array $response responce prepared by the API callbackarray $rspData RSP data for a particular role/ product.bool $singleProductResponse True if '$rspData' contains pricingabout a single product. False if '$rspData'contains pricing for all products about aparticular role.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-role-based.php: 456

array$response: responce prepared by the API callback

array$rspData: RSP data for a particular role/ product.

bool$singleProductResponse: True if '$rspData' contains pricing

array$response: responce prepared by the API callback

array: $rspData RSP data for a particular group/ product.

cspapi_modify_rsp_data_product_response_format

Filter
Filter for CSP API response format for the role specific pricing.array $response responce prepared by the API callbackarray $rspData RSP data for a particular group/ product.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-role-based.php: 498

array$response: responce prepared by the API callback

array: $rspData RSP data for a particular group/ product.

bool$result whether: group mapping exists in 'wusp_role_pricing_mapping' table.

int$role wp: user-role slug.

int$productId: Id of the WC product.

int$minQty: Minimum quantity field in the rule.

cspapi_is_direct_role_mapping_exists

Filter
Filter to changeg the result for whether role mapping exists in 'wusp_role_pricing_mapping' table.bool $result whether group mapping exists in 'wusp_role_pricing_mapping' table.int $role wp user-role slug.int $productId Id of the WC product.int $minQty Minimum quantity field in the rule.

customer-specific-pricing-for-woocommerce/includes/csp-api/includes/api/class-csp-mappings-role-based.php: 530

bool$result whether: group mapping exists in 'wusp_role_pricing_mapping' table.

int$role wp: user-role slug.

int$productId: Id of the WC product.

int$minQty: Minimum quantity field in the rule.

array$array: {

csp_single_view_option_types

Filter
This filter can be used to filter the names used for the rule option types.array $array {}

customer-specific-pricing-for-woocommerce/includes/single-view/settings/general.php: 46

customer-specific-pricing-for-woocommerce/includes/single-view/settings/search_setting.php: 42

array$array: {

Updated on March 25, 2021
shvsh > /home/accounts/gwcfreed/wisdmlabs/public_html/docs/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php
shvsh > /home/accounts/gwcfreed/wisdmlabs/public_html/docs/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php
shvsh > /home/accounts/gwcfreed/wisdmlabs/public_html/docs/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php

Was this article helpful?

shvsh > /home/accounts/gwcfreed/wisdmlabs/public_html/docs/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php
shvsh > /home/accounts/gwcfreed/wisdmlabs/public_html/docs/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php