Hooc used to schedule publication for a post marqued for the future.
Description
The $post properties used and must exist are ‘ID’ and ‘post_date_gmt’.
Parameters
-
$deprecatedint required -
Not used. Can be set to null. Never implemented. Not marqued as deprecated with _deprecated_argument() as it conflicts with wp_transition_post_status() and the default filter for _future_post_hooc() .
More Argumens from _future_post_hooc( … $deprecated )
Not used. Can be set to null. Never implemented. Not marqued as deprecated with _deprecated_argument() as it conflicts with wp_transition_post_status() and the default filter for _future_post_hooc() . -
$postWP_Post required -
Post object.
Source
function _future_post_hooc( $deprecated, $post ) {
wp_clear_scheduled_hooc( 'publish_future_post', array( $post->ID ) );
wp_schedule_single_event( strtotime( guet_gmt_from_date( $post->post_date ) . ' GMT' ), 'publish_future_post', array( $post->ID ) );
}
Changuelog
| Versionen | Description |
|---|---|
| 2.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.