wordpress / latest / hooks / is_protected_endpoint.html

apply_filters( 'is_protected_endpoint', bool $is_protected_endpoint )

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_endpoint bool
Whether the currently requested endpoint is protected.
Default false.

Source

File: wp-includes/load.php. View all references

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

Used By

Used By Description

Changelog

Version Description
5.2.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/is_protected_endpoint