wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
get_post_modified_time › WordPress Function
Seit2.0.0
Veraltetn/v
› get_post_modified_time ( $d = 'U', $gmt = false, $post = null, $translate = false )
Parameter: (4) |
|
Gibt zurück: |
|
Definiert in: |
|
Codex: |
Retrieve the time at which the post was last modified.
Ähnliche Funktionen: get_the_modified_time, get_the_modified_date, the_modified_time, get_lastpostmodified, get_post_time
Quellcode
function get_post_modified_time( $d = 'U', $gmt = false, $post = null, $translate = false ) { $post = get_post( $post ); if ( ! $post ) { return false; } if ( $gmt ) { $time = $post->post_modified_gmt; } else { $time = $post->post_modified; } $time = mysql2date( $d, $time, $translate ); /** * Filters the localized time a post was last modified. * * @since 2.8.0 * * @param string $time The formatted time. * @param string $d The date format. Accepts 'G', 'U', or php date format. Default 'U'. * @param bool $gmt Whether to return the GMT time. Default false. */ return apply_filters( 'get_post_modified_time', $time, $d, $gmt ); }