[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
Server-side rendering of the `core/calendar` block.
File Size: | 153 lines (5 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
render_block_core_calendar( $attributes ) X-Ref |
Renders the `core/calendar` block on server. return: string Returns the block content. param: array $attributes The block attributes. |
register_block_core_calendar() X-Ref |
Registers the `core/calendar` block on server. |
block_core_calendar_has_published_posts() X-Ref |
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 return: bool Has any published posts or not. |
block_core_calendar_update_has_published_posts() X-Ref |
Queries the database for any published post and saves a flag whether any published post exists or not. return: bool Has any published posts or not. |
block_core_calendar_update_has_published_post_on_delete( $post_id ) X-Ref |
Handler for updating the has published posts flag when a post is deleted. param: int $post_id Deleted post ID. |
block_core_calendar_update_has_published_post_on_transition_post_status( $new_status, $old_status, $post ) X-Ref |
Handler for updating the has published posts flag when a post status changes. param: string $new_status The status the post is changing to. param: string $old_status The status the post is changing from. param: WP_Post $post Post object. |
Generated: Thu Nov 21 01:00:03 2024 | Cross-referenced by PHPXref 0.7.1 |