diff --git a/inc/AppPresser_WPAPI_Mods.php b/inc/AppPresser_WPAPI_Mods.php index d8f92be..d0e972e 100644 --- a/inc/AppPresser_WPAPI_Mods.php +++ b/inc/AppPresser_WPAPI_Mods.php @@ -269,6 +269,10 @@ public function api_logout( $request ) { do_action( 'appp_logout_header' ); + if( ! defined('DOING_AJAX') ) { + define('DOING_AJAX', true); + } + wp_logout(); $response = array(