Tribe__Events__Aggregator__Tabs__History::action_screen_options( $screen )

Adds Screen Options for This Tab

Contents


Return

(void)


Top ↑

Source

File: src/Tribe/Aggregator/Tabs/History.php

	public function action_screen_options( $screen ) {
		if ( ! $this->is_active() ) {
			return;
		}

		$record_screen = WP_Screen::get( Tribe__Events__Aggregator__Records::$post_type );

		$args = array(
			'label'   => esc_html__( 'Records per page', 'the-events-calendar' ),
			'default' => 10,
			'option'  => 'tribe_records_history_per_page',
		);

		// We need to Add on both because of a WP Limitation on WP_Screen
		$record_screen->add_option( 'per_page', $args );
		$screen->add_option( 'per_page', $args );
	}