LLMS_Twenty_Twenty_Two::handle_page_header_wrappers()

Handle wrapping the catalog page header in 2022 theme elements.


Description Description

This method determines if the catalog title are to be displayed and adds additional actions which will wrap the elements in 2022 theme elements depending on what is meant to be displayed.


Top ↑

Return Return

(void)


Top ↑

Source Source

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

	public static function handle_page_header_wrappers() {

		/** This filter is documented in templates/loop.php */
		$show_title = apply_filters( 'lifterlms_show_page_title', true );

		if ( $show_title ) {
			add_action( 'lifterlms_before_main_content', array( __CLASS__, 'page_header_wrap' ), 11 );
			add_action( 'lifterlms_archive_description', array( __CLASS__, 'page_header_wrap_end' ), 99999999 );
		}

		if ( $show_title && ! empty( lifterlms_get_archive_description() ) ) {
			add_action( 'lifterlms_archive_description', array( __CLASS__, 'output_archive_description_wrapper' ), -1 );
			add_action( 'lifterlms_archive_description', array( __CLASS__, 'output_archive_description_wrapper_end' ), 99999998 );
		}

	}


Top ↑

Changelog Changelog

Changelog
Version Description
5.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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