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 #

 <?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;
	}
);