Set TRUE or FALSE based on a wp_localize_script option value July 14, 2022 by Tarik Billa var CUPID = {"button":"false"}; The false here should not have quotes around it.