TANGGAL DAN WAKTU WEB

oleh

/* Update TGL */
function wpb_last_updated_date( $content ) {
$u_time = get_the_time(‘U’);
$u_modified_time = get_the_modified_time(‘U’);
if ($u_modified_time >= $u_time + 86400) {
$updated_date = get_the_modified_time(‘j F Y g:i a’);
$custom_content .= ‘<p class=”last-updated”> ‘. $updated_date . ‘, ‘. $updated_time .'</p>’;
}
if(is_single()){
$custom_content .= $content;
return $custom_content;
}
return $content;
}
add_filter( ‘the_content’, ‘wpb_last_updated_date’ );