Core Function
View Source on Trac ↗ block_core_calendar_update_has_published_post_on_transition_post_status()
block_core_calendar_update_has_published_post_on_transition_post_status( mixed $new_status, mixed $old_status, mixed $post ) Handler for updating the has published posts flag when a post status changes.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $new_status string | The status the post is changing to. Required |
| $old_status string | The status the post is changing from. Required |
| $post WP_Post | Post object. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
5.9.0
Source File
wp-includes/blocks/calendar.php
Advertisement