Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




_future_post_hook [ WordPress Function ]

_future_post_hook ( $deprecated = '', $post )
Access:
  • private
Parameters:
Defined at:



Hook used to schedule publication for a post marked for the future.

The $post properties used and must exist are 'ID' and 'post_date_gmt'.

Source


<?php
function _future_post_hook$deprecated ''$post ) {
    
wp_clear_scheduled_hook'publish_future_post', array( $post->ID ) );
    
wp_schedule_single_eventstrtotimeget_gmt_from_date$post->post_date ) . ' GMT') , 'publish_future_post', array( $post->ID ) );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics