Astra_Posts_Structure_Markup::astra_archive_custom_title( string $title )

Support custom title & description support for archive.


Description


Parameters

$title

(string) (Required) Default archive title.


Return

(string)


Source

File: inc/modules/posts-structures/class-astra-posts-structure-markup.php

	public function astra_archive_custom_title( $title ) {
		$post_type = strval( get_post_type() );
		$title     = ! empty( astra_get_option( 'ast-dynamic-archive-' . $post_type . '-custom-title', '' ) ) ? astra_get_option( 'ast-dynamic-archive-' . $post_type . '-custom-title' ) : $title;
		return $title;
	}

Changelog

Changelog
Version Description
4.0.0 Introduced.

User Contributed Notes

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