Thanks to Ken Wu and Jonathan Brinley. Using your answers, I finally got the highlight of my admin menu to work properly. Since I was struggling to get it working, I would post the whole result here so that other people can find it easier:
The idea is to call the parent_file filter (undocumented, since many parts of Wordpress are not random). In my case, I added a custom menu instead of the default value created when creating a custom message type.
In my custom zip code, I call the add_meta_boxes action. In this case, I call my call to the parent_file filter:
add_filter('parent_file', array(&$this, 'highlight_admin_menu'));
_
Then my hightlight_admin_menu function looks like hightlight_admin_menu :
function highlight_admin_menu($some_slug){ global $parent_file; $parent_file = 'post.php?post=149&action=edit'; return $parent_file; }
_
This is my menu to highlight correctly. Try playing with your own code to find out where to add_filter('parent_file', ...) code. Find a bit of code executed only on this particular page load, but soon enough that you can still change the $parent_file variable.
Hope this helps!
Alexandre Bourlier
source share