wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
the_modified_date › WordPress Function
Od2.1.0
Przestarzałyn/a
› the_modified_date ( $format = '', $before = '', $after = '', $display = true )
| Parametry: (4) |
|
| Powrót: |
|
| Zdefiniowane na: |
|
| Codex: |
Displays the date on which the post was last modified.
Powiązane Funkcje: get_the_modified_date, the_modified_time, the_modified_author, get_the_modified_time, get_the_modified_author
Źródło
function the_modified_date( $format = '', $before = '', $after = '', $display = true ) {
$the_modified_date = $before . get_the_modified_date( $format ) . $after;
/**
* Filters the date a post was last modified, for display.
*
* @since 2.1.0
*
* @param string $the_modified_date The last modified date.
* @param string $format PHP date format.
* @param string $before HTML output before the date.
* @param string $after HTML output after the date.
*/
$the_modified_date = apply_filters( 'the_modified_date', $the_modified_date, $format, $before, $after );
if ( ! $display ) {
return $the_modified_date;
}
echo $the_modified_date;
}