learndash_admin_settings_data

apply_filters( 'learndash_admin_settings_data',  array $script_data )

Filters admin settings script data.


Description #


Parameters #

$script_data

(array) An array of script data to be localized.


Source #

File: includes/settings/class-ld-settings-pages.php


Examples #

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

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