Browse: Home / Hooks /

learndash_shortcodes_popup_type

apply_filters( 'learndash_shortcodes_popup_type',  string $popup_type )

Filters TinyMCE shortcode popup type.


Description #


Parameters #

$popup_type

(string) Type of the popup for TinyMCE.


Source #

File: includes/settings/class-ld-shortcodes-tinymce.php


Examples #

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

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

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