Skip to content

Commit

Permalink
doing ajax for login
Browse files Browse the repository at this point in the history
  • Loading branch information
stillatmylinux committed Sep 19, 2018
1 parent 51136e1 commit b409b37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/AppPresser_WPAPI_Mods.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b409b37

Please sign in to comment.