Browse: Home / Hooks /

learndash_select2_lib

apply_filters( 'learndash_select2_lib',  boolean $learndash_select2 )

Filters whether the select2 is loaded or not.


Description #


Parameters #

$learndash_select2

(boolean) whether the select2 library is loaded or not.


Source #

File: includes/ld-misc-functions.php


Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?php
/**
 * Example usage for learndash_select2_lib filter.
 */
add_filter(
	'learndash_select2_lib',
	function( $learndash_select2 ) {
		// May add any custom logic using $learndash_select2.

		// Always return $learndash_select2.
		return $learndash_select2;
	}
);