Filter: um_dequeue_select2_scripts

apply_filters( 'um_dequeue_select2_scripts', $dequeue_select2 ) → {bool}

Filters marker for dequeue select2.JS library.

Parameters:
Name Type Description
$dequeue_select2 bool

Dequeue select2 assets marker. Set to true for dequeue scripts.

Since:
  • 2.0.0
Source:
Returns:

Dequeue select2 assets. By default false.

Type
bool
Example

Dequeue select2 assets.

function custom_um_dequeue_select2_scripts( $dequeue_select2 ) {
    $dequeue_select2 = true;
    return $dequeue_select2;
}
add_filter( 'um_dequeue_select2_scripts', 'custom_um_dequeue_select2_scripts' );