How to call ajax in wordpress

后端 未结 7 527
青春惊慌失措
青春惊慌失措 2020-11-28 10:49

My ajax call output is always showing 0 as output don\'t know why

In functions.php I have this code

function get_data() {
    $abc = \'         


        
7条回答
  •  鱼传尺愫
    2020-11-28 11:31

    Add admin-ajax.php by using admin_url('admin-ajax.php');

    
    

提交回复
热议问题