Page::hijack_on_loop_start( WP_Query $query )
Fires when the loop starts, and tries to hijack the loop for post.
Contents
Parameters
- $query
-
(WP_Query) (Required) Main WordPress query where we are hijacking the_content.
Return
(void) Action hook with no return.
Source
File: src/Tribe/Views/V2/Template/Page.php
public function hijack_on_loop_start( \WP_Query $query ) { // After attaching itself it will prevent it from happening again. remove_action( 'loop_start', [ $this, 'hijack_on_loop_start' ], 1000 ); $this->maybe_hijack_page_template( $query ); }
Changelog
Version | Description |
---|---|
4.9.10 | Introduced. |