WP_Plugins_List_Table::extra_tablenav()protectedWP 1.0

Method of the class: WP_Plugins_List_Table{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->extra_tablenav( $which );
$which(string) (required)
-

Notes

  • Global. String. $status

WP_Plugins_List_Table::extra_tablenav() code WP 6.4.3

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>';
}