spellbook_pricing

  1. Description
  2. Usage
  3. Parameters

Description

Filter the pricing data for a product type. Returning an array when $pricing is false will present pricing as available — useful for testing, but the data is yours to get right.

Usage

Applied globally

add_filter( 'spellbook_pricing', 'my_custom_function' );

Parameters

$pricing array|false

Pricing data, or false when the store couldn’t be reached.

$product_type string

Spellbook product type (‘perk’ or ‘connect’).