learndash_custom_label_fields

apply_filters( 'learndash_custom_label_fields',  array $setting_option_fields )

Filters custom labels setting fields.


Description #


Parameters #

$setting_option_fields

(array) Associative array of Setting field details like name,type,label,value.


Source #

File: includes/settings/settings-sections/class-ld-settings-section-custom-labels.php


Examples #

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

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