the_weekday

The timeline below displays how wordpress function the_weekday has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Displays the weekday on which the post was written.
 *
 * @since 0.71
 *
 * @global WP_Locale $wp_locale WordPress date and time locale object.
 */
function the_weekday()
{
    global $wp_locale;
    $post = get_post();
    if (!$post) {
        return;
    }
    $the_weekday = $wp_locale->get_weekday(get_post_time('w', false, $post));
    /**
     * Filters the weekday on which the post was written, for display.
     *
     * @since 0.71
     *
     * @param string $the_weekday
     */
    echo apply_filters('the_weekday', $the_weekday);
}

WordPress Version: 5.3

/**
 * Display the weekday on which the post was written.
 *
 * @since 0.71
 *
 * @global WP_Locale $wp_locale WordPress date and time locale object.
 */
function the_weekday()
{
    global $wp_locale;
    $post = get_post();
    if (!$post) {
        return;
    }
    $the_weekday = $wp_locale->get_weekday(get_post_time('w', false, $post));
    /**
     * Filters the weekday on which the post was written, for display.
     *
     * @since 0.71
     *
     * @param string $the_weekday
     */
    echo apply_filters('the_weekday', $the_weekday);
}

WordPress Version: 4.6

/**
 * Display the weekday on which the post was written.
 *
 * @since 0.71
 *
 * @global WP_Locale $wp_locale
 */
function the_weekday()
{
    global $wp_locale;
    $the_weekday = $wp_locale->get_weekday(mysql2date('w', get_post()->post_date, false));
    /**
     * Filters the weekday on which the post was written, for display.
     *
     * @since 0.71
     *
     * @param string $the_weekday
     */
    echo apply_filters('the_weekday', $the_weekday);
}

WordPress Version: 4.3

/**
 * Display the weekday on which the post was written.
 *
 * @since 0.71
 *
 * @global WP_Locale $wp_locale
 */
function the_weekday()
{
    global $wp_locale;
    $the_weekday = $wp_locale->get_weekday(mysql2date('w', get_post()->post_date, false));
    /**
     * Filter the weekday on which the post was written, for display.
     *
     * @since 0.71
     *
     * @param string $the_weekday
     */
    echo apply_filters('the_weekday', $the_weekday);
}

WordPress Version: 4.1

/**
 * Display the weekday on which the post was written.
 *
 * @since 0.71
 * @uses $wp_locale
 */
function the_weekday()
{
    global $wp_locale;
    $the_weekday = $wp_locale->get_weekday(mysql2date('w', get_post()->post_date, false));
    /**
     * Filter the weekday on which the post was written, for display.
     *
     * @since 0.71
     *
     * @param string $the_weekday
     */
    $the_weekday = apply_filters('the_weekday', $the_weekday);
    echo $the_weekday;
}

WordPress Version: 4.0

/**
 * Display the weekday on which the post was written.
 *
 * @since 0.71
 * @uses $wp_locale
 * @uses $post
 */
function the_weekday()
{
    global $wp_locale;
    $the_weekday = $wp_locale->get_weekday(mysql2date('w', get_post()->post_date, false));
    /**
     * Filter the weekday on which the post was written, for display.
     *
     * @since 0.71
     *
     * @param string $the_weekday
     */
    $the_weekday = apply_filters('the_weekday', $the_weekday);
    echo $the_weekday;
}

WordPress Version: 3.9

/**
 * Display the weekday on which the post was written.
 *
 * @since 0.71
 * @uses $wp_locale
 * @uses $post
 */
function the_weekday()
{
    global $wp_locale;
    $the_weekday = $wp_locale->get_weekday(mysql2date('w', get_post()->post_date, false));
    /**
     * Filter the weekday on which the post was written, for display.
     *
     * @since 0.71
     *
     * @param string $the_weekday 
     */
    $the_weekday = apply_filters('the_weekday', $the_weekday);
    echo $the_weekday;
}

WordPress Version: 3.7

/**
 * Display the weekday on which the post was written.
 *
 * @since 0.71
 * @uses $wp_locale
 * @uses $post
 */
function the_weekday()
{
    global $wp_locale;
    $the_weekday = $wp_locale->get_weekday(mysql2date('w', get_post()->post_date, false));
    $the_weekday = apply_filters('the_weekday', $the_weekday);
    echo $the_weekday;
}