Add after template hooks
This commit is contained in:
@@ -6,14 +6,12 @@
|
|||||||
*
|
*
|
||||||
* @author ThemeBoy
|
* @author ThemeBoy
|
||||||
* @package SportsPress/Templates
|
* @package SportsPress/Templates
|
||||||
* @version 0.8.1
|
* @version 0.9
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||||
if ( ! in_the_loop() ) return; // Return if not in main loop
|
if ( ! in_the_loop() ) return; // Return if not in main loop
|
||||||
?>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
/**
|
/**
|
||||||
* sportspress_before_single_calendar hook
|
* sportspress_before_single_calendar hook
|
||||||
*/
|
*/
|
||||||
@@ -23,6 +21,7 @@ if ( ! in_the_loop() ) return; // Return if not in main loop
|
|||||||
echo get_the_password_form();
|
echo get_the_password_form();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|
||||||
<?php do_action( 'sportspress_single_calendar_content' ); ?>
|
do_action( 'sportspress_single_calendar_content' );
|
||||||
|
|
||||||
|
do_action( 'sportspress_after_single_calendar' );
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
*
|
*
|
||||||
* @author ThemeBoy
|
* @author ThemeBoy
|
||||||
* @package SportsPress/Templates
|
* @package SportsPress/Templates
|
||||||
* @version 0.8.1
|
* @version 0.9
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||||
if ( ! in_the_loop() ) return; // Return if not in main loop
|
if ( ! in_the_loop() ) return; // Return if not in main loop
|
||||||
?>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
/**
|
/**
|
||||||
* sportspress_before_single_event hook
|
* sportspress_before_single_event hook
|
||||||
*/
|
*/
|
||||||
@@ -23,6 +21,7 @@ if ( ! in_the_loop() ) return; // Return if not in main loop
|
|||||||
echo get_the_password_form();
|
echo get_the_password_form();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|
||||||
<?php do_action( 'sportspress_single_event_content' ); ?>
|
do_action( 'sportspress_single_event_content' );
|
||||||
|
|
||||||
|
do_action( 'sportspress_after_single_event' );
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
*
|
*
|
||||||
* @author ThemeBoy
|
* @author ThemeBoy
|
||||||
* @package SportsPress/Templates
|
* @package SportsPress/Templates
|
||||||
* @version 0.8.1
|
* @version 0.9
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||||
if ( ! in_the_loop() ) return; // Return if not in main loop
|
if ( ! in_the_loop() ) return; // Return if not in main loop
|
||||||
?>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
/**
|
/**
|
||||||
* sportspress_before_single_list hook
|
* sportspress_before_single_list hook
|
||||||
*/
|
*/
|
||||||
@@ -23,6 +21,7 @@ if ( ! in_the_loop() ) return; // Return if not in main loop
|
|||||||
echo get_the_password_form();
|
echo get_the_password_form();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|
||||||
<?php do_action( 'sportspress_single_list_content' ); ?>
|
do_action( 'sportspress_single_list_content' );
|
||||||
|
|
||||||
|
do_action( 'sportspress_after_single_list' );
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
*
|
*
|
||||||
* @author ThemeBoy
|
* @author ThemeBoy
|
||||||
* @package SportsPress/Templates
|
* @package SportsPress/Templates
|
||||||
* @version 0.8.1
|
* @version 0.9
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||||
if ( ! in_the_loop() ) return; // Return if not in main loop
|
if ( ! in_the_loop() ) return; // Return if not in main loop
|
||||||
?>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
/**
|
/**
|
||||||
* sportspress_before_single_player hook
|
* sportspress_before_single_player hook
|
||||||
*/
|
*/
|
||||||
@@ -23,6 +21,7 @@ if ( ! in_the_loop() ) return; // Return if not in main loop
|
|||||||
echo get_the_password_form();
|
echo get_the_password_form();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|
||||||
<?php do_action( 'sportspress_single_player_content' ); ?>
|
do_action( 'sportspress_single_player_content' );
|
||||||
|
|
||||||
|
do_action( 'sportspress_after_single_player' );
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
*
|
*
|
||||||
* @author ThemeBoy
|
* @author ThemeBoy
|
||||||
* @package SportsPress/Templates
|
* @package SportsPress/Templates
|
||||||
* @version 0.8.1
|
* @version 0.9
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||||
if ( ! in_the_loop() ) return; // Return if not in main loop
|
if ( ! in_the_loop() ) return; // Return if not in main loop
|
||||||
?>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
/**
|
/**
|
||||||
* sportspress_before_single_staff hook
|
* sportspress_before_single_staff hook
|
||||||
*/
|
*/
|
||||||
@@ -23,6 +21,7 @@ if ( ! in_the_loop() ) return; // Return if not in main loop
|
|||||||
echo get_the_password_form();
|
echo get_the_password_form();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|
||||||
<?php do_action( 'sportspress_single_staff_content' ); ?>
|
do_action( 'sportspress_single_staff_content' );
|
||||||
|
|
||||||
|
do_action( 'sportspress_after_single_staff' );
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
*
|
*
|
||||||
* @author ThemeBoy
|
* @author ThemeBoy
|
||||||
* @package SportsPress/Templates
|
* @package SportsPress/Templates
|
||||||
* @version 0.8.1
|
* @version 0.9
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||||
if ( ! in_the_loop() ) return; // Return if not in main loop
|
if ( ! in_the_loop() ) return; // Return if not in main loop
|
||||||
?>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
/**
|
/**
|
||||||
* sportspress_before_single_table hook
|
* sportspress_before_single_table hook
|
||||||
*/
|
*/
|
||||||
@@ -23,6 +21,7 @@ if ( ! in_the_loop() ) return; // Return if not in main loop
|
|||||||
echo get_the_password_form();
|
echo get_the_password_form();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|
||||||
<?php do_action( 'sportspress_single_table_content' ); ?>
|
do_action( 'sportspress_single_table_content' );
|
||||||
|
|
||||||
|
do_action( 'sportspress_after_single_table' );
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
*
|
*
|
||||||
* @author ThemeBoy
|
* @author ThemeBoy
|
||||||
* @package SportsPress/Templates
|
* @package SportsPress/Templates
|
||||||
* @version 0.8.1
|
* @version 0.9
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||||
if ( ! in_the_loop() ) return; // Return if not in main loop
|
if ( ! in_the_loop() ) return; // Return if not in main loop
|
||||||
?>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
/**
|
/**
|
||||||
* sportspress_before_single_team hook
|
* sportspress_before_single_team hook
|
||||||
*/
|
*/
|
||||||
@@ -23,6 +21,7 @@ if ( ! in_the_loop() ) return; // Return if not in main loop
|
|||||||
echo get_the_password_form();
|
echo get_the_password_form();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|
||||||
<?php do_action( 'sportspress_single_team_content' ); ?>
|
do_action( 'sportspress_single_team_content' );
|
||||||
|
|
||||||
|
do_action( 'sportspress_after_single_team' );
|
||||||
|
|||||||
Reference in New Issue
Block a user