PUM_Admin_Pages::reorder_admin_submenu()

Submenu filter function. Tested with Wordpress 4.1.1 Sort and order submenu positions to match our custom order.


Description Description


Source Source

File: classes/Admin/Pages.php

	public static function reorder_admin_submenu() {
		global $submenu;

		if ( isset( $submenu['edit.php?post_type=popup'] ) ) {
			// Sort the menu according to your preferences
			usort( $submenu['edit.php?post_type=popup'], array( __CLASS__, 'reorder_submenu_array' ) );
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.4 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.