Customize WordPress “Favorites” Menu

Toss this into your functions.php file to add or remove items from the favorites menu (dropdown by Howdy greeting) in WordPress.

Update: This feature has been bundled into the Howdy Tweaks plugin.

<?php
	add_filter('favorite_actions', 'custom_favorites');
	function custom_favorites($actions) {
		$actions['options.php'] = array('All Settings', 'unfiltered_html'); // this line adds an item
		//$actions = array(); //this line would completely remove the favorites menu
		return $actions;
	}
?>

Note: Since WordPress 3.3, this does not work, but the Howdy Tweaks plugin is up-to-date.

Leave a Reply

Your email address will not be published.

%d bloggers like this: