llms_is_rest()

Determine if request is a REST request


Return Return

(bool)


Top ↑

Source Source

File: includes/llms.functions.core.php

 */
function llms_is_rest() {
	/**
	 * Filters whether the current request is a REST request.
	 *
	 * @since 5.4.0
	 *
	 * @param $is_rest Whether the current request is a REST request.
	 */
	return apply_filters( 'llms_is_rest', ( defined( 'REST_REQUEST' ) && REST_REQUEST ) );


Top ↑

Changelog Changelog

Changelog
Version Description
3.27.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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