Astra_Posts_Single_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-single-structures-configs.php

	public function get_dynamic_section_title( $post_type_object, $post_type ) {
		if ( ! is_null( $post_type_object ) ) {
			$title = isset( $post_type_object->labels->singular_name ) ? ucfirst( $post_type_object->labels->singular_name ) : ucfirst( $post_type );
		} else {
			$title = __( 'Single Banner', 'astra' );
		}
		return apply_filters( 'astra_single_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.