Browse: Home / Hooks /

learndash_admin_page_form

apply_filters( 'learndash_admin_page_form',  string $form_output,  boolean $start )

Filters the HTML output for admin page form.


Description #


Parameters #

$form_output

(string) The HTML output for admin page form.

$start

(boolean) A flag to indicate whether it is start or end of the form.


Source #

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


Examples #

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

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

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