Delete a specific item menu when I deactivate my plugin (resolved)
When I activate my plugin (register_activation_hook
register_activation_hook), I add a new specific page and a corresponding item menu in the custom menu. No problem here.
When I deactivate my plugin (register_deactivation_hook
register_deactivation_hook), I delete the specific page but I don't know how to delete the corresponding item menu from the custom menu ?
Any idea ? Thx