get_post_time [ WordPress Function ]
get_post_time ( $d = 'U', $gmt = false, $post = null, $translate = false )
| Parameters: | |
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: get_post_type, get_post_meta, get_post_stati, _get_last_post_time, get_post_field
Retrieve the time at which the post was written.
Source
<?php
function get_post_time( $d = 'U', $gmt = false, $post = null, $translate = false ) { // returns timestamp
$post = get_post($post);
if ( $gmt )
$time = $post->post_date_gmt;
else
$time = $post->post_date;
$time = mysql2date($d, $time, $translate);
return apply_filters('get_post_time', $time, $d, $gmt);
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Template Tags/get post time « WordPress Codex
Description. Returns the time of the current post for use in PHP. It does not display the time. To display the time of a post, use the_time(). This tag can be used ...
codex.wordpress.org - WordPress › Support » get_post_time of a specific post
Hmm, I'm not sure that code will get me to where I need to go although I could be interpreting it incorrectly. Let me give some context. I'm trying to put together a ...
wordpress.org - get_post_time (WordPress Function) - WPSeek.com
WordPress lookup for get_post_time, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - get_post_time Wordpress hook details -- Adam Brown, BYU Political ...
Detailed information about every action hook and filter used in WordPress. Makes Plugin API easier to use. Lists appearance, file location, and deprecation data ...
adambrown.info