AJAX CODE for WP and Core php