Astra_Posts_Archive_Structures_Configs::get_dynamic_section_title( object|null $post_type_object, string $post_type )

Get Dynamic Section Title.


Description


Parameters

$post_type_object

(object|null) (Required) Post type object.

$post_type

(string) (Required) Post type.


Return

(string)


Source

File: inc/modules/posts-structures/customizer/class-astra-posts-archive-structures-configs.php

	public function get_dynamic_section_title( $post_type_object, $post_type ) {
		if ( ! is_null( $post_type_object ) ) {
			$title = ( 'post' === $post_type ) ? __( 'Blog', 'astra' ) : Astra_Posts_Structures_Configs::astra_get_dynamic_section_title( get_post_type_object( $post_type ), $post_type );
		} else {
			$title = __( 'Archive Banner', 'astra' );
		}
		return apply_filters( 'astra_archive_post_title', $title . __( ' Title', 'astra' ) );
	}

Changelog

Changelog
Version Description
4.4.0 Introduced.


User Contributed Notes

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