wp_update_nav_menu also triggers post_updated September 19, 2022 by Tarik Billa The solution was given by Fabian Marz. I remove the default parameters and added one variable in the function call.