Please do use this filter and check once – ampforwp_amp_menu_content and let us know back.
Thread Starter
PCWP
(@toprasobh)
I just want to remove the already set amp menu using code and replacing it with static menu items using hooks. The filter is not working. I tried the below hooks and it’s working fine. But both menus are displaying. I don’t want to uncheck the amp menu through the appearance -> menu. Want to remove the menu already set through appearance -> menu using code and display the static menu added using action hooks.
add_action(‘ampforwp_after_amp_menu’, ‘amp_alternate_menu’);
Can you please let me know what value did you return using the filter?
Thread Starter
PCWP
(@toprasobh)
Can you share the full filter code to remove AMP menu.