Astra_Ext_Blog_Pro_Markup::single_post_add_endpoint()
Single post rewrite endpoint.
Description
Return
(void)
Source
File: addons/blog-pro/classes/class-astra-ext-blog-pro-markup.php
public function single_post_add_endpoint() { if ( astra_get_option( 'ast-auto-prev-post' ) || is_customize_preview() ) { add_rewrite_endpoint( 'partial-prev', EP_PERMALINK ); add_action( 'template_redirect', array( $this, 'single_post_template_redirect' ) ); add_action( 'astra_before_content_partial_loop', array( $this, 'auto_prev_post_wp_bakery_compatibility' ) ); } }
Expand full source code Collapse full source code View on Trac