Astra_Loop::__construct()
Constructor
Description
Source
File: inc/class-astra-loop.php
public function __construct() { // Loop. add_action( 'astra_content_loop', array( $this, 'loop_markup' ) ); add_action( 'astra_content_page_loop', array( $this, 'loop_markup_page' ) ); // Template Parts. add_action( 'astra_page_template_parts_content', array( $this, 'template_parts_page' ) ); add_action( 'astra_page_template_parts_content', array( $this, 'template_parts_comments' ), 15 ); add_action( 'astra_template_parts_content', array( $this, 'template_parts_post' ) ); add_action( 'astra_template_parts_content', array( $this, 'template_parts_search' ) ); add_action( 'astra_template_parts_content', array( $this, 'template_parts_default' ) ); add_action( 'astra_template_parts_content', array( $this, 'template_parts_comments' ), 15 ); // Template None. add_action( 'astra_template_parts_content_none', array( $this, 'template_parts_none' ) ); add_action( 'astra_template_parts_content_none', array( $this, 'template_parts_404' ) ); add_action( 'astra_404_content_template', array( $this, 'template_parts_404' ) ); // Content top and bottom. add_action( 'astra_template_parts_content_top', array( $this, 'template_parts_content_top' ) ); add_action( 'astra_template_parts_content_bottom', array( $this, 'template_parts_content_bottom' ) ); // Add closing and ending div 'ast-row'. add_action( 'astra_template_parts_content_top', array( $this, 'astra_templat_part_wrap_open' ), 25 ); add_action( 'astra_template_parts_content_bottom', array( $this, 'astra_templat_part_wrap_close' ), 5 ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.2.7 | Introduced. |