Browse: Home / Hooks /

learndash_settings_field_html_before

apply_filters( 'learndash_settings_field_html_before',  string $output,  array $field_arguments )

Filters the HTML output to be displayed before settings field.


Description #


Parameters #

$output

(string) The HTML output to be displayed before setting field.

$field_arguments

(array) An array of setting field arguments.


Source #

File: includes/settings/settings-fields/class-ld-settings-fields-checkbox-switch.php


Examples #

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

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

		// Always return $output.
		return $output;
	},
	10,
	2
);