ID; } add_filter( 'determine_current_user', 'androapp_json_basic_auth_handler', 20 ); function androapp_json_basic_auth_error( $error ) { // Passthrough other errors if ( ! empty( $error ) ) { return $error; } global $wp_json_basic_auth_error; return $wp_json_basic_auth_error; } add_filter( 'json_authentication_errors', 'androapp_json_basic_auth_error' );