issue in wp_localize_script July 28, 2022 by Tarik Billa Change the first param of wp_localize_script to same as the handle of your main script file. main in this case.