astra_blog_layout_customization()

Blog Layout Customization


Description


Return

(void)


Source

File: inc/blog/blog.php

function astra_blog_layout_customization() {
	$blog_layout       = astra_get_blog_layout();
	$blog_layout_slugs = array( 'blog-layout-4', 'blog-layout-5', 'blog-layout-6' );

	if ( in_array( $blog_layout, $blog_layout_slugs ) ) {
		remove_action( 'astra_entry_content_blog', 'astra_entry_content_blog_template' );
		add_action( 'astra_entry_content_blog', 'astra_blog_layout_template' );
	}
}

Changelog

Changelog
Version Description
4.6.0 Introduced.


User Contributed Notes

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