Browse: Home / Hooks /

learndash-menu-position

apply_filters( 'learndash-menu-position',  int $menu_position )

Filters LearnDash settings submenu menu position.


Description #


Parameters #

$menu_position

(int) Menu position.


Source #

File: includes/admin/class-learndash-admin-menus-tabs.php


Examples #

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

 <?php
/**
 * Example usage for learndash-menu-position filter.
 */
add_filter(
	'learndash-menu-position',
	function( $menu_position ) {
		// May add any custom logic using $menu_position.

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

Changelog #

Changelog
Version Description
2.4.0 Introduced.