Filter Name : rtmedia_media_admin_bar_menu

Description

Use this filter to change the Media menu position in admin menu bar.

Example


// Check if function does not exist.
if ( ! function_exists( 'rtmedia_media_admin_bar_menu_callback' ) ) {
	function rtmedia_media_admin_bar_menu_callback( $order ) {
		// Show the media menu at the top of the other menu items.
		$order = 1;
		return $order;
	}
}
add_filter( 'rtmedia_media_admin_bar_menu', 'rtmedia_media_admin_bar_menu_callback', 11, 1 );