Theme files include /** , */ and i can not work these codes

I notice /** , */ in theme files.
And i can not work these codes to remove help button …

add_action(‘admin_head’, ‘mytheme_remove_help_tabs’);
function mytheme_remove_help_tabs() {
$screen = get_current_screen();
$screen->remove_help_tabs();
}

Thank you so much !

the codes work in function.php

Hi,

Just place the code /* in front of the code and */ at the end of the code, like this:

/* add_action(‘admin_head’, ‘mytheme_remove_help_tabs’);
function mytheme_remove_help_tabs() {
$screen = get_current_screen();
$screen->remove_help_tabs();
} */

and it will have to work to comment out codes in theme files.

Best Regards,
Csaba

Hi Csaba,

Thanks for your help. But it does not work.

I tried a lot of variation but it not work…
I am trying a vendor system and vendors can see help tab and wordpress information.
I do not want that.

Anyway, Perhaps main code can has error.

At least You tried to help me. Really thank you very much.

Have a nice day !

Hi,

The /* */ works, but maybe your code doesn’t, unfortunately that I can’t check, since that’s not Our code, it’s a custom code.

Best Regards,
Csaba

Yes. You are right. Thank you Csaba for your interest

Hi,

You’re most welcome! If you need help with anything else, please open a new topic.

Have a nice day!

Best Regards,
Csaba