Add flush rewrite rules function
This commit is contained in:
@@ -160,21 +160,6 @@ function sportspress_activation_hook() {
|
||||
)
|
||||
);
|
||||
|
||||
// Flush rewrite rules
|
||||
sportspress_result_post_init();
|
||||
sportspress_outcome_post_init();
|
||||
sportspress_column_post_init();
|
||||
sportspress_statistic_post_init();
|
||||
sportspress_event_post_init();
|
||||
sportspress_team_post_init();
|
||||
sportspress_table_post_init();
|
||||
sportspress_player_post_init();
|
||||
sportspress_list_post_init();
|
||||
sportspress_staff_post_init();
|
||||
sportspress_venue_term_init();
|
||||
sportspress_league_term_init();
|
||||
sportspress_season_term_init();
|
||||
sportspress_position_term_init();
|
||||
flush_rewrite_rules();
|
||||
sportspress_flush_rewrite_rules();
|
||||
}
|
||||
register_activation_hook( SPORTSPRESS_PLUGIN_FILE, 'sportspress_activation_hook' );
|
||||
|
||||
Reference in New Issue
Block a user