WP_Plugins_List_Table::extra_tablenav( string $which )


Parameters

$which

(Required)


Source

File: wp-admin/includes/class-wp-plugins-list-table.php

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

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

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

		if ( 'recently_activated' == $status ) {
			submit_button( __( 'Clear List' ), '', 'clear-recent-list', false );
		} elseif ( 'top' === $which && 'mustuse' === $status ) {
			/* translators: %s: mu-plugins directory name */
			echo '<p>' . sprintf( __( 'Files in the %s directory are executed automatically.' ),
				'<code>' . str_replace( ABSPATH, '/', WPMU_PLUGIN_DIR ) . '</code>'
			) . '</p>';
		} elseif ( 'top' === $which && 'dropins' === $status ) {
			/* translators: %s: wp-content directory name */
			echo '<p>' . sprintf( __( 'Drop-ins are advanced plugins in the %s directory that replace ClassicPress functionality when present.' ),
				'<code>' . str_replace( ABSPATH, '', WP_CONTENT_DIR ) . '</code>'
			) . '</p>';
		}
		echo '</div>';
	}