Astra_Ext_Advanced_Hooks_Markup::render_overridden_template( int $post_id )
Overriding default template by Custom Layout.
Description
Parameters
- $post_id
-
(int) (Required) post id.
Return
(string)
Source
File: addons/advanced-hooks/classes/class-astra-ext-advanced-hooks-markup.php
public static function render_overridden_template( $post_id ) { $post_content = get_post( $post_id ); if ( empty( $post_content ) ) { return; } get_header(); do_action( 'astra_addon_before_custom_single_content', $post_id ); ob_start(); self::get_instance()->get_action_content( $post_id ); echo do_shortcode( ob_get_clean() ); do_action( 'astra_addon_after_custom_single_content', $post_id ); get_footer(); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |