Reorganize and add statistics post types
This commit is contained in:
8
sportspress-hooks.php
Normal file
8
sportspress-hooks.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
// Flush rewrite rules on activation to make sure permalinks work properly
|
||||
function sp_rewrite_flush() {
|
||||
sp_team_cpt_init();
|
||||
flush_rewrite_rules();
|
||||
}
|
||||
register_activation_hook( __FILE__, 'sp_rewrite_flush' );
|
||||
?>
|
||||
Reference in New Issue
Block a user