llms_rest_is_not_found_error( WP_Error $wp_error )

Checks whether or not the passed object is a 404 not found error


Parameters Parameters

$wp_error

(WP_Error) (Required) The WP_Error object to check.


Top ↑

Return Return

(boolean)


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/server/llms-rest-server-functions.php

function llms_rest_is_not_found_error( $wp_error ) {
	return in_array( WP_Http::NOT_FOUND, llms_rest_get_all_error_statuses( $wp_error ), true ); // 404.
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.18 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.