Add backwards compatibility for ver. < 0.7 shortcodes
This commit is contained in:
@@ -7,11 +7,19 @@
|
|||||||
* @author ThemeBoy
|
* @author ThemeBoy
|
||||||
* @category Core
|
* @category Core
|
||||||
* @package ThemeBoy/Functions
|
* @package ThemeBoy/Functions
|
||||||
* @version 0.7
|
* @version 0.7.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||||
|
|
||||||
|
/* Shortcodes */
|
||||||
|
add_shortcode( 'events-calendar', 'SP_Shortcodes::event_calendar' );
|
||||||
|
add_shortcode( 'events-list', 'SP_Shortcodes::event_list' );
|
||||||
|
add_shortcode( 'league-table', 'SP_Shortcodes::league_table' );
|
||||||
|
add_shortcode( 'player-list', 'SP_Shortcodes::player_list' );
|
||||||
|
add_shortcode( 'player-gallery', 'SP_Shortcodes::player_gallery' );
|
||||||
|
|
||||||
|
/* Functions */
|
||||||
function sportspress_flush_rewrite_rules() {
|
function sportspress_flush_rewrite_rules() {
|
||||||
return sp_flush_rewrite_rules();
|
return sp_flush_rewrite_rules();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user