Make WordPress Core

Opened 23 months ago

Last modified 20 months 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:

Description

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
20 months 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.