Title: WP_Plugins_List_Table::extra_tablenav
Published: April 25, 2014
Last modified: February 24, 2026

---

# WP_Plugins_List_Table::extra_tablenav( string $which )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/classes/wp_plugins_list_table/extra_tablenav/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/classes/wp_plugins_list_table/extra_tablenav/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_plugins_list_table/extra_tablenav/?output_format=md#related)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_plugins_list_table/extra_tablenav/?output_format=md#wp--skip-link--target)

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/wp_plugins_list_table/extra_tablenav/?output_format=md#parameters)󠁿

 `$which`stringrequired

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_plugins_list_table/extra_tablenav/?output_format=md#source)󠁿

    ```php
    protected function extra_tablenav( $which ) {
    	global $status;

    	if ( ! in_array( $status, array( 'recently_activated', 'mustuse', 'dropins' ), true ) ) {
    		return;
    	}

    	echo '<div class="alignleft actions">';

    	if ( 'recently_activated' === $status ) {
    		submit_button( __( 'Clear List' ), '', 'clear-recent-list', false );
    	} elseif ( 'top' === $which && 'mustuse' === $status ) {
    		echo '<p>' . sprintf(
    			/* translators: %s: mu-plugins directory name. */
    			__( 'Files in the %s directory are executed automatically.' ),
    			'<code>' . str_replace( ABSPATH, '/', WPMU_PLUGIN_DIR ) . '</code>'
    		) . '</p>';
    	} elseif ( 'top' === $which && 'dropins' === $status ) {
    		echo '<p>' . sprintf(
    			/* translators: %s: wp-content directory name. */
    			__( 'Drop-ins are single files, found in the %s directory, that replace or enhance WordPress features in ways that are not possible for traditional plugins.' ),
    			'<code>' . str_replace( ABSPATH, '', WP_CONTENT_DIR ) . '</code>'
    		) . '</p>';
    	}
    	echo '</div>';
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-plugins-list-table.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/includes/class-wp-plugins-list-table.php#L658)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/class-wp-plugins-list-table.php#L658-L683)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_plugins_list_table/extra_tablenav/?output_format=md#related)󠁿

| Uses | Description | 
| [submit_button()](https://developer.wordpress.org/reference/functions/submit_button/)`wp-admin/includes/template.php` |

Echoes a submit button, with provided text and appropriate class(es).

  | 
| [__()](https://developer.wordpress.org/reference/functions/__/)`wp-includes/l10n.php` |

Retrieves the translation of $text.

  |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_plugins_list_table%2Fextra_tablenav%2F)
before being able to contribute a note or feedback.