wp_logout triggers php error 500[ad_1] hi! i created a custom rest endpoint to logout the current user: function _api_logout()…