Add after template hooks
This commit is contained in:
@@ -6,23 +6,22 @@
|
||||
*
|
||||
* @author ThemeBoy
|
||||
* @package SportsPress/Templates
|
||||
* @version 0.8.1
|
||||
* @version 0.9
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! in_the_loop() ) return; // Return if not in main loop
|
||||
?>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* sportspress_before_single_calendar hook
|
||||
*/
|
||||
do_action( 'sportspress_before_single_calendar' );
|
||||
/**
|
||||
* sportspress_before_single_calendar hook
|
||||
*/
|
||||
do_action( 'sportspress_before_single_calendar' );
|
||||
|
||||
if ( post_password_required() ) {
|
||||
echo get_the_password_form();
|
||||
return;
|
||||
}
|
||||
?>
|
||||
if ( post_password_required() ) {
|
||||
echo get_the_password_form();
|
||||
return;
|
||||
}
|
||||
|
||||
<?php do_action( 'sportspress_single_calendar_content' ); ?>
|
||||
do_action( 'sportspress_single_calendar_content' );
|
||||
|
||||
do_action( 'sportspress_after_single_calendar' );
|
||||
|
||||
Reference in New Issue
Block a user