LLMS_Twenty_Twenty_One::handle_certificate_title()

Don’t show the default “Untitled” post title for certificates without a title.


Description Description

Designers may opt to exclude the certificate title for aesthetic reasons, in this scenario we should simply not display a title.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/theme-support/class-llms-twenty-twenty-one.php

	public static function handle_certificate_title() {

		if ( in_array( get_post_type(), array( 'llms_certificate', 'llms_my_certificate' ), true ) ) {
			remove_filter( 'the_title', 'twenty_twenty_one_post_title' );
		}

	}

Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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