flowcrafter_upsell_config

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Change the editor upsell settings
  5. Since

Description

Filter the upsell config localized to the editor. Handy for flipping flow, showPricing, or debug per environment without editing self::UPSELL_DEFAULT_CONFIG. Unknown keys pass through — the editor ignores what it doesn’t recognize.

Usage

Change the editor upsell settings.

add_filter( 'flowcrafter_upsell_config', 'my_custom_function' );

Parameters

$config mixed

The default upsell config.

Examples

Change the editor upsell settings

add_filter( 'flowcrafter_upsell_config', function ( $config ) {
    $config['showPricing'] = false;
    return $config;
} );

Since

  • 1.0-beta-1 Hook added.