0

I am trying to highlight an admin menu option (top level or submenu) but it just doesn't work.

The code should be pretty straight forward but it seems that my filter isn't triggered.

add_filter('parent_file', 'tpt_highlight_menu');
function tpt_highlight_menu(){
    return 'edit.php';
}

None of the options are highlighted and I tried different ones...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.