Ajax return 0 in wordpress Posted on October 31, 2017 by admin Use echo instead of return a value from ajax function . { echo ‘locked’; die(); }