Page::get_link_html()

Fetches the link HTML for the page holding the Calendar manager.


Return

(string)


Top ↑

Source

File: src/Tribe/Admin/Manager/Page.php

	public function get_link_html() {
		$screen = get_current_screen();

		if ( TEC::POSTTYPE === $screen->id ) {
			$button_title = esc_html_x( 'Back to Manager', 'Link ot the Events Manager page', 'tribe-events-calendar-pro' );
		} else {
			$button_title = esc_html_x( 'Manager', 'Link ot the Events Manager page', 'tribe-events-calendar-pro' );
		}

		return '<a href="' . esc_url( $this->get_link() ) . '" class="page-title-action tec-admin-manager__link">' . $button_title . '</a>';
	}

Top ↑

Changelog

Changelog
Version Description
5.9.0 Introduced.