/** * refresh cache settings, we need to declare public because it call from out of this class (ie: hw-caches.php) * @param bool $output */ public function refresh_wp_menus_cache($output = true) { //custom wp menus cache HW_HOANGWEB::del_wp_option('hw_custom_wp_menu'); HW_HOANGWEB::del_wp_option('hw_custom_wp_submenu'); HW_HOANGWEB::del_wp_option('other_modules_submenus'); if ($output) { $this->command_log('deleted all menus caches !'); } }