wp_dashboard_events_news

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

WordPress Version: 6.3

/**
 * Renders the Events and News dashboard widget.
 *
 * @since 4.8.0
 */
function wp_dashboard_events_news()
{
    wp_print_community_events_markup();
    ?>

	<div class="wordpress-news hide-if-no-js">
		<?php 
    wp_dashboard_primary();
    ?>
	</div>

	<p class="community-events-footer">
		<?php 
    printf(
        '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
        'https://make.wordpress.org/community/meetups-landing-page',
        __('Meetups'),
        /* translators: Hidden accessibility text. */
        __('(opens in a new tab)')
    );
    ?>

		|

		<?php 
    printf(
        '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
        'https://central.wordcamp.org/schedule/',
        __('WordCamps'),
        /* translators: Hidden accessibility text. */
        __('(opens in a new tab)')
    );
    ?>

		|

		<?php 
    printf(
        '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
        /* translators: If a Rosetta site exists (e.g. https://es.wordpress.org/news/), then use that. Otherwise, leave untranslated. */
        esc_url(_x('https://wordpress.org/news/', 'Events and News dashboard widget')),
        __('News'),
        /* translators: Hidden accessibility text. */
        __('(opens in a new tab)')
    );
    ?>
	</p>

	<?php 
}

WordPress Version: 6.2

/**
 * Renders the Events and News dashboard widget.
 *
 * @since 4.8.0
 */
function wp_dashboard_events_news()
{
    wp_print_community_events_markup();
    ?>

	<div class="wordpress-news hide-if-no-js">
		<?php 
    wp_dashboard_primary();
    ?>
	</div>

	<p class="community-events-footer">
		<?php 
    printf(
        '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
        'https://make.wordpress.org/community/meetups-landing-page',
        __('Meetups'),
        /* translators: Hidden accessibility text. */
        __('(opens in a new tab)')
    );
    ?>

		|

		<?php 
    printf(
        '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
        'https://central.wordcamp.org/schedule/',
        __('WordCamps'),
        /* translators: Hidden accessibility text. */
        __('(opens in a new tab)')
    );
    ?>

		|

		<?php 
    printf(
        '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
        /* translators: If a Rosetta site exists (e.g. https://es.wordpress.org/news/), then use that. Otherwise, leave untranslated. */
        esc_url(_x('https://wordpress.org/news/', 'Events and News dashboard widget')),
        __('News'),
        /* translators: Hidden accessibility text. */
        __('(opens in a new tab)')
    );
    ?>
	</p>

	<?php 
}

WordPress Version: 5.3

/**
 * Renders the Events and News dashboard widget.
 *
 * @since 4.8.0
 */
function wp_dashboard_events_news()
{
    wp_print_community_events_markup();
    ?>

	<div class="wordpress-news hide-if-no-js">
		<?php 
    wp_dashboard_primary();
    ?>
	</div>

	<p class="community-events-footer">
		<?php 
    printf(
        '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
        'https://make.wordpress.org/community/meetups-landing-page',
        __('Meetups'),
        /* translators: Accessibility text. */
        __('(opens in a new tab)')
    );
    ?>

		|

		<?php 
    printf(
        '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
        'https://central.wordcamp.org/schedule/',
        __('WordCamps'),
        /* translators: Accessibility text. */
        __('(opens in a new tab)')
    );
    ?>

		|

		<?php 
    printf(
        '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
        /* translators: If a Rosetta site exists (e.g. https://es.wordpress.org/news/), then use that. Otherwise, leave untranslated. */
        esc_url(_x('https://wordpress.org/news/', 'Events and News dashboard widget')),
        __('News'),
        /* translators: Accessibility text. */
        __('(opens in a new tab)')
    );
    ?>
	</p>

	<?php 
}

WordPress Version: 5.1

/**
 * Renders the Events and News dashboard widget.
 *
 * @since 4.8.0
 */
function wp_dashboard_events_news()
{
    wp_print_community_events_markup();
    ?>

	<div class="wordpress-news hide-if-no-js">
		<?php 
    wp_dashboard_primary();
    ?>
	</div>

	<p class="community-events-footer">
		<?php 
    printf(
        '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
        'https://make.wordpress.org/community/meetups-landing-page',
        __('Meetups'),
        /* translators: accessibility text */
        __('(opens in a new tab)')
    );
    ?>

		|

		<?php 
    printf(
        '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
        'https://central.wordcamp.org/schedule/',
        __('WordCamps'),
        /* translators: accessibility text */
        __('(opens in a new tab)')
    );
    ?>

		|

		<?php 
    printf(
        '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
        /* translators: If a Rosetta site exists (e.g. https://es.wordpress.org/news/), then use that. Otherwise, leave untranslated. */
        esc_url(_x('https://wordpress.org/news/', 'Events and News dashboard widget')),
        __('News'),
        /* translators: accessibility text */
        __('(opens in a new tab)')
    );
    ?>
	</p>

	<?php 
}

WordPress Version: 4.9

/**
 * Renders the Events and News dashboard widget.
 *
 * @since 4.8.0
 */
function wp_dashboard_events_news()
{
    wp_print_community_events_markup();
    ?>

	<div class="wordpress-news hide-if-no-js">
		<?php 
    wp_dashboard_primary();
    ?>
	</div>

	<p class="community-events-footer">
		<?php 
    printf(
        '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
        'https://make.wordpress.org/community/meetups-landing-page',
        __('Meetups'),
        /* translators: accessibility text */
        __('(opens in a new window)')
    );
    ?>

		|

		<?php 
    printf(
        '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
        'https://central.wordcamp.org/schedule/',
        __('WordCamps'),
        /* translators: accessibility text */
        __('(opens in a new window)')
    );
    ?>

		|

		<?php 
    printf(
        '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
        /* translators: If a Rosetta site exists (e.g. https://es.wordpress.org/news/), then use that. Otherwise, leave untranslated. */
        esc_url(_x('https://wordpress.org/news/', 'Events and News dashboard widget')),
        __('News'),
        /* translators: accessibility text */
        __('(opens in a new window)')
    );
    ?>
	</p>

	<?php 
}

WordPress Version: 4.8

/**
 * Renders the Events and News dashboard widget.
 *
 * @since 4.8.0
 */
function wp_dashboard_events_news()
{
    wp_print_community_events_markup();
    ?>

	<div class="wordpress-news hide-if-no-js">
		<?php 
    wp_dashboard_primary();
    ?>
	</div>

	<p class="community-events-footer">
		<?php 
    printf(
        '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
        'https://make.wordpress.org/community/meetups-landing-page',
        __('Meetups'),
        /* translators: accessibility text */
        __('(opens in a new window)')
    );
    ?>

		|

		<?php 
    printf(
        '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
        'https://central.wordcamp.org/schedule/',
        __('WordCamps'),
        /* translators: accessibility text */
        __('(opens in a new window)')
    );
    ?>

		|

		<?php 
    printf(
        '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
        /* translators: If a Rosetta site exists (e.g. https://es.wordpress.org/news/), then use that. Otherwise, leave untranslated. */
        esc_url(__('https://wordpress.org/news/')),
        __('News'),
        /* translators: accessibility text */
        __('(opens in a new window)')
    );
    ?>
	</p>

	<?php 
}