LLMS_Admin_Reporting_Tab_Memberships::breadcrumbs()

Add breadcrumb links to the tab depending on current view.


Return Return

(void)


Top ↑

Source Source

File: includes/admin/reporting/tabs/class.llms.admin.reporting.tab.memberships.php

	public function breadcrumbs() {

		$links = array();

		// Single student.
		if ( isset( $_GET['membership_id'] ) ) {
			$membership = llms_get_post( absint( $_GET['membership_id'] ) );
			$links[ LLMS_Admin_Reporting::get_stab_url( 'overview' ) ] = $membership->get( 'title' );
		}

		foreach ( $links as $url => $title ) {

			echo '<a href="' . esc_url( $url ) . '">' . $title . '</a>';

		}

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.32.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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