block_core_calendar_has_published_posts


block_core_calendar_has_published_posts ( No parameters )

Returns:
  • (bool) Has any published posts or not.
Defined at:

Description

Returns whether or not there are any published posts.Used to hide the calendar block when there are no published posts. This compensates for a known Core bug: https://core.trac.wordpress.org/ticket/12016

Related Functions

block_core_calendar_update_has_published_posts, block_core_calendar_update_has_published_post_on_delete, block_core_calendar_update_has_published_post_on_transition_post_status, get_others_unpublished_posts, block_core_image_render_lightbox

Top Google Results

User discussions

wpseek mobile