Browse: Home / Hooks /

learndash-settings-page-load

This hook has been deprecated. Use ‘learndash_settings_page_load’ instead.

do_action_deprecated( 'learndash-settings-page-load',  string $setting_screen_id,  string $setting_page_id )

Fires on LearnDash settings page load.


Description #


Parameters #

$setting_screen_id

(string) Settings screen ID.

$setting_page_id

(string) Settings page ID.


Source #

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


Examples #

 <?php
/**
 * Example usage for learndash_add_meta_boxes action.
 */
add_action(
	'learndash_add_meta_boxes',
	function( $setting_screen_id ) {
		// May add any custom logic using $setting_screen_id

		echo '<div>Custom content or markup</div>';
	}
);
 

Changelog #

Changelog
Version Description
3.2.3 Introduced. Use 'learndash_settings_page_load' instead.