Rest Api WordPress

  • Check caching/plugins interference

  • Try using:

jQuery.ajax({
type: ‘POST’,
url : obj_php.ajax_url_login,
beforeSend: function (xhr) {
xhr.setRequestHeader(‘X-WP-Nonce’, obj_php.nonce);
},

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)