Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: the_time

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
531 }
532
533 function the_time($d='', $echo = true) {
534     global $id, $post;
535     if ($d=='') {
536         $the_time = mysql2date(get_settings('time_format'), $post->post_date);
537     } else {
538         $the_time = mysql2date($d, $post->post_date);
539     }
540     $the_time = apply_filters('the_time', $the_time);
541     if ($echo) {
542         echo $the_time;
543     } else {
544         return $the_time;
545     }
546 }
547
548 function the_weekday() {
549     global $weekday, $id, $post;