block_core_calendar_has_published_posts ( No parameters )
- (bool) Has any published posts or not.
- Introduced in WordPress: —
- Deprecated in WordPress: —
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