woocommerce_rest_is_request_to_rest_api

woocommerce_rest_is_request_to_rest_api

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_rest_is_request_to_rest_api') is found 1 times:

  • /includes/class-wc-rest-authentication.php line 83
     
    		// Allow third party plugins use our authentication methods.
    		$third_party = ( false !== strpos( $request_uri, $rest_prefix . 'wc-' ) );
    
    		return apply_filters( 'woocommerce_rest_is_request_to_rest_api', $woocommerce || $third_party );
    	}
    
    	/**
    	 * Authenticate user.
    	 *
    	 * @param int|false $user_id User ID if one has been determined, false otherwise.