Make WordPress Core

Opened 3 years ago

Last modified 2 years ago

#54376 new enhancement

Add `is_post_publicly_viewable` filter

Reported by: peterwilsoncc's profile peterwilsoncc Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: needs-patch
Focuses: Cc:


Related to #49628, #54375.

Add a filter to the is_post_publicly_viewable() function to allow theme and plugin developers to override the default value.

In some circumstances a developer may require the checks use different conditions to the default.

Change History (1)

#1 @rafiahmedd
2 years ago

I think developers can use is_post_status_viewable & is_post_type_viewable filter hook for modifications.

Note: See TracTickets for help on using tickets.