BP_Optouts_List_Table::views()

Get the list of views available on this table.


Source Source

File: bp-core/classes/class-bp-optouts-list-table.php

	public function views() {
		if ( is_multisite() && bp_core_do_network_admin() ) {
			$tools_parent = 'admin.php';
		} else {
			$tools_parent = 'tools.php';
		}

		$url_base = add_query_arg(
			array(
				'page' => 'bp-optouts',
			),
			bp_get_admin_url( $tools_parent )
		);
		?>

		<h2 class="screen-reader-text">
			<?php
				/* translators: accessibility text */
				esc_html_e( 'Filter opt-outs list', 'buddypress' );
			?>
		</h2>
		<ul class="subsubsub">
			<?php
			/**
			 * Fires inside listing of views so plugins can add their own.
			 *
			 * @since 8.0.0
			 *
			 * @param string $url_base       Current URL base for view.
			 * @param array  $active_filters Current filters being requested.
			 */
			do_action( 'bp_optouts_list_table_get_views', $url_base, $this->active_filters ); ?>
		</ul>
	<?php
	}


Top ↑

Changelog Changelog

Changelog
Version Description
8.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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