Ajax return 0 in wordpress

Use echo instead of return a value from ajax function .

{
echo ‘locked’;
die();
}