the_weekday

Display the weekday on which the post was written.

Description

the_weekday(); 

Usage

  1. if ( !function_exists( 'the_weekday' ) ) { 
  2. require_once ABSPATH . WPINC . '/general-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = the_weekday(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/general-template.php  
  1. function the_weekday() { 
  2. global $wp_locale; 
  3. $the_weekday = $wp_locale->get_weekday( mysql2date( 'w', get_post()->post_date, false ) ); 
  4.  
  5. /** 
  6. * Filters the weekday on which the post was written, for display. 
  7. * @since 0.71 
  8. * @param string $the_weekday 
  9. */ 
  10. echo apply_filters( 'the_weekday', $the_weekday );