astra_remove_link_from_featured_image( string $content = '' )

Remove link from featured image for layout 6


Description


Parameters

$content

(string) (Optional) Content.

Default value: ''


Return

(mixed)


Source

File: inc/blog/blog.php

function astra_remove_link_from_featured_image( $content = '' ) {
	$blog_layout = astra_get_blog_layout();

	if ( is_archive() || is_home() || is_search() ) {
		if ( 'blog-layout-6' === $blog_layout ) {
			add_filter( 'astra_blog_post_featured_image_link_after', '__return_false' );
			add_filter( 'astra_blog_post_featured_image_link_before', '__return_false' );
		}
	}
	return $content;

}

Changelog

Changelog
Version Description
4.6.0 Introduced.


User Contributed Notes

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