LLMS_Notification_View_Quiz_Graded::set_footer()

Setup footer content for output


Return Return

(string)


Top ↑

Source Source

File: includes/notifications/views/class.llms.notification.view.quiz.graded.php

	protected function set_footer() {

		$attempt = new LLMS_Quiz_Attempt( $this->notification->get( 'post_id' ) );
		if ( ! $attempt->exists() ) {
			return '';
		}

		$permalink = $attempt->get_permalink();
		if ( ! $permalink ) {
			return '';
		}

		return '<a href="' . esc_url( $permalink ) . '">' . __( 'View the attempt', 'lifterlms' ) . '</a>';
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.29.0 Unknown.
3.24.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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