astra_target_rules_for_related_posts()
Provision to update display rules for visibility of Related Posts section in Astra.
Description
Return
(bool)
Source
File: inc/extras.php
function astra_target_rules_for_related_posts() { $allow_related_posts = false; $supported_post_type = apply_filters( 'astra_related_posts_supported_post_types', 'post' ); if ( astra_get_option( 'enable-related-posts' ) && is_singular( $supported_post_type ) ) { $allow_related_posts = true; } return apply_filters( 'astra_showcase_related_posts', $allow_related_posts ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |