gspc_should_enqueue_frontend

  1. Description
  2. Usage
  3. Parameters
  4. Since

Description

Filter whether to enqueue Product Configurator assets on the frontend.

Usage

Filter whether to enqueue Product Configurator assets for all forms.

add_filter( 'gspc_should_enqueue_frontend', '__return_true' );

Filter whether to enqueue Product Configurator assets for a specific form.

add_filter( 'gspc_should_enqueue_frontend_FORMID', '__return_true' );

Parameters

  • false bool

    Determines if the GSPC frontend assets will be enqueued. Set to true to enable the frontend assets.

  • form \GFForm

    The form currently being processed.

Since

This filter is available since Gravity Shop Product Configurator 1.0-beta-2.10.