WP_MS_Sites_List_Table::extra_tablenav( string $which )

In this article

Displays extra controls between bulk actions and pagination.

Parameters

$whichstringrequired
The location of the extra table nav markup: Either 'top' or 'bottom'.

Source

protected function extra_tablenav( $which ) {
	?>
	<div class="alignleft actions">
	<?php
	if ( 'top' === $which ) {
		ob_start();

		/**
		 * Fires before the Filter button on the MS sites list table.
		 *
		 * @since 5.3.0
		 *
		 * @param string $which The location of the extra table nav markup: Either 'top' or 'bottom'.
		 */
		do_action( 'restrict_manage_sites', $which );

		$output = ob_get_clean();

		if ( ! empty( $output ) ) {
			echo $output;
			submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'site-query-submit' ) );
		}
	}
	?>
	</div>
	<?php
	/**
	 * Fires immediately following the closing "actions" div in the tablenav for the
	 * MS sites list table.
	 *
	 * @since 5.3.0
	 *
	 * @param string $which The location of the extra table nav markup: Either 'top' or 'bottom'.
	 */
	do_action( 'manage_sites_extra_tablenav', $which );
}

Hooks

do_action( ‘manage_sites_extra_tablenav’, string $which )

Fires immediately following the closing “actions” div in the tablenav for the MS sites list table.

do_action( ‘restrict_manage_sites’, string $which )

Fires before the Filter button on the MS sites list table.

Changelog

VersionDescription
5.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.