display_plugins_table

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

WordPress Version: 6.2

/**
 * Displays plugin content based on plugin list.
 *
 * @since 2.7.0
 *
 * @global WP_List_Table $wp_list_table
 */
function display_plugins_table()
{
    global $wp_list_table;
    switch (current_filter()) {
        case 'install_plugins_beta':
            printf(
                /* translators: %s: URL to "Features as Plugins" page. */
                '<p>' . __('You are using a development version of WordPress. These feature plugins are also under development. <a href="%s">Learn more</a>.') . '</p>',
                'https://make.wordpress.org/core/handbook/about/release-cycle/features-as-plugins/'
            );
            break;
        case 'install_plugins_featured':
            printf(
                /* translators: %s: https://wordpress.org/plugins/ */
                '<p>' . __('Plugins extend and expand the functionality of WordPress. You may install plugins in the <a href="%s">WordPress Plugin Directory</a> right from here, or upload a plugin in .zip format by clicking the button at the top of this page.') . '</p>',
                __('https://wordpress.org/plugins/')
            );
            break;
        case 'install_plugins_recommended':
            echo '<p>' . __('These suggestions are based on the plugins you and other users have installed.') . '</p>';
            break;
        case 'install_plugins_favorites':
            if (empty($_GET['user']) && !get_user_option('wporg_favorites')) {
                return;
            }
            break;
    }
    ?>
	<form id="plugin-filter" method="post">
		<?php 
    $wp_list_table->display();
    ?>
	</form>
	<?php 
}

WordPress Version: 6.1

/**
 * Displays plugin content based on plugin list.
 *
 * @since 2.7.0
 *
 * @global WP_List_Table $wp_list_table
 */
function display_plugins_table()
{
    global $wp_list_table;
    switch (current_filter()) {
        case 'install_plugins_beta':
            printf(
                /* translators: %s: URL to "Features as Plugins" page. */
                '<p>' . __('You are using a development version of WordPress. These feature plugins are also under development. <a href="%s">Learn more</a>.') . '</p>',
                'https://make.wordpress.org/core/handbook/about/release-cycle/features-as-plugins/'
            );
            break;
        case 'install_plugins_featured':
            printf(
                /* translators: %s: https://wordpress.org/plugins/ */
                '<p>' . __('Plugins extend and expand the functionality of WordPress. You may automatically install plugins from the <a href="%s">WordPress Plugin Directory</a> or upload a plugin in .zip format by clicking the button at the top of this page.') . '</p>',
                __('https://wordpress.org/plugins/')
            );
            break;
        case 'install_plugins_recommended':
            echo '<p>' . __('These suggestions are based on the plugins you and other users have installed.') . '</p>';
            break;
        case 'install_plugins_favorites':
            if (empty($_GET['user']) && !get_user_option('wporg_favorites')) {
                return;
            }
            break;
    }
    ?>
	<form id="plugin-filter" method="post">
		<?php 
    $wp_list_table->display();
    ?>
	</form>
	<?php 
}

WordPress Version: 5.3

/**
 * Display plugin content based on plugin list.
 *
 * @since 2.7.0
 *
 * @global WP_List_Table $wp_list_table
 */
function display_plugins_table()
{
    global $wp_list_table;
    switch (current_filter()) {
        case 'install_plugins_favorites':
            if (empty($_GET['user']) && !get_user_option('wporg_favorites')) {
                return;
            }
            break;
        case 'install_plugins_recommended':
            echo '<p>' . __('These suggestions are based on the plugins you and other users have installed.') . '</p>';
            break;
        case 'install_plugins_beta':
            printf(
                /* translators: %s: URL to "Features as Plugins" page. */
                '<p>' . __('You are using a development version of WordPress. These feature plugins are also under development. <a href="%s">Learn more</a>.') . '</p>',
                'https://make.wordpress.org/core/handbook/about/release-cycle/features-as-plugins/'
            );
            break;
    }
    ?>
	<form id="plugin-filter" method="post">
		<?php 
    $wp_list_table->display();
    ?>
	</form>
	<?php 
}

WordPress Version: 4.5

/**
 * Display plugin content based on plugin list.
 *
 * @since 2.7.0
 *
 * @global WP_List_Table $wp_list_table
 */
function display_plugins_table()
{
    global $wp_list_table;
    switch (current_filter()) {
        case 'install_plugins_favorites':
            if (empty($_GET['user']) && !get_user_option('wporg_favorites')) {
                return;
            }
            break;
        case 'install_plugins_recommended':
            echo '<p>' . __('These suggestions are based on the plugins you and other users have installed.') . '</p>';
            break;
        case 'install_plugins_beta':
            printf('<p>' . __('You are using a development version of WordPress. These feature plugins are also under development. <a href="%s">Learn more</a>.') . '</p>', 'https://make.wordpress.org/core/handbook/about/release-cycle/features-as-plugins/');
            break;
    }
    ?>
	<form id="plugin-filter" method="post">
		<?php 
    $wp_list_table->display();
    ?>
	</form>
	<?php 
}

WordPress Version: 4.3

/**
 * Display plugin content based on plugin list.
 *
 * @since 2.7.0
 *
 * @global WP_List_Table $wp_list_table
 */
function display_plugins_table()
{
    global $wp_list_table;
    switch (current_filter()) {
        case 'install_plugins_favorites':
            if (empty($_GET['user']) && !get_user_option('wporg_favorites')) {
                return;
            }
            break;
        case 'install_plugins_recommended':
            echo '<p>' . __('These suggestions are based on the plugins you and other users have installed.') . '</p>';
            break;
    }
    ?>
	<form id="plugin-filter" method="post">
		<?php 
    $wp_list_table->display();
    ?>
	</form>
	<?php 
}

WordPress Version: 4.2

/**
 * Display plugin content based on plugin list.
 *
 * @since 2.7.0
 */
function display_plugins_table()
{
    global $wp_list_table;
    switch (current_filter()) {
        case 'install_plugins_favorites':
            if (empty($_GET['user']) && !get_user_option('wporg_favorites')) {
                return;
            }
            break;
        case 'install_plugins_recommended':
            echo '<p>' . __('These suggestions are based on the plugins you and other users have installed.') . '</p>';
            break;
    }
    ?>
	<form id="plugin-filter" method="post">
		<?php 
    $wp_list_table->display();
    ?>
	</form>
	<?php 
}

WordPress Version: 4.1

/**
 * Display plugin content based on plugin list.
 *
 * @since 2.7.0
 */
function display_plugins_table()
{
    global $wp_list_table;
    switch (current_filter()) {
        case 'install_plugins_favorites':
            if (empty($_GET['user']) && !get_user_option('wporg_favorites')) {
                return;
            }
            break;
        case 'install_plugins_recommended':
            echo '<p>' . __('These suggestions are based on the plugins you and other users have installed.') . '</p>';
            break;
    }
    ?>
	<form id="plugin-filter" action="" method="post">
		<?php 
    $wp_list_table->display();
    ?>
	</form>
	<?php 
}

WordPress Version: 0.1

/**
 * Display plugin content based on plugin list.
 *
 * @since 2.7.0
 */
function display_plugins_table()
{
    global $wp_list_table;
    if (current_filter() == 'install_plugins_favorites' && empty($_GET['user']) && !get_user_option('wporg_favorites')) {
        return;
    }
    ?>
	<form id="plugin-filter" action="" method="post">
		<?php 
    $wp_list_table->display();
    ?>
	</form>
	<?php 
}

WordPress Version: 3.7

/**
 * Display plugin content based on plugin list.
 *
 * @since 2.7.0
 */
function display_plugins_table()
{
    global $wp_list_table;
    if (current_filter() == 'install_plugins_favorites' && empty($_GET['user']) && !get_user_option('wporg_favorites')) {
        return;
    }
    $wp_list_table->display();
}