Skip to content

Instantly share code, notes, and snippets.

View menu-thumbnails
/**
* Add featured image thumbnails to children of menu items with class menu-thumbs
*
* @param array $items List of menu objects (WP_Post).
* @param array $args Array of menu settings.
* @return array
*/
function add_images_to_special_submenu( $items ) {
$special_menu_parent_ids = array();
You can’t perform that action at this time.