apply_filters( ‘is_protected_endpoint’, bool $is_protected_endpoint )

In this article

Filters whether the current request is against a protected endpoint.

Description

This filter is only fired when an endpoint is requested which is not already protected by WordPress core. As such, it exclusively allows providing further protected endpoints in addition to the admin backend, login pages and protected Ajax actions.

Parameters

$is_protected_endpointbool
Whether the currently requested endpoint is protected.
Default false.

Source

return (bool) apply_filters( 'is_protected_endpoint', false );

Changelog

VersionDescription
5.2.0Introduced.

User Contributed Notes

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