Astra_Related_Posts_Markup::initialize_related_posts()
Initialize related posts module in Astra.
Description
Source
File: inc/modules/related-posts/class-astra-related-posts-markup.php
public function initialize_related_posts() { $priority = 10; $location = astra_get_option( 'related-posts-outside-location' ); $module_placement = astra_get_option( 'related-posts-box-placement' ); if ( 'outside' === $module_placement ) { $action = 'astra_content_after'; if ( astra_get_option( 'enable-comments-area', true ) && 'outside' === astra_get_option( 'comments-box-placement' ) ) { $priority = 'below' === $location ? 20 : 9; } } elseif ( 'inside' === $module_placement ) { $action = 'astra_entry_bottom'; $priority = 'below' === $location ? 20 : 10; } else { $action = 'astra_entry_after'; } add_action( $action, array( $this, 'astra_related_posts_markup' ), $priority ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |