Skip to content

Commit

Permalink
feat: also register taxonomies before flushing permalinks on activation
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoo committed Oct 16, 2020
1 parent e9f5b85 commit f7ca356
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/class-newspack-listings-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ function( $classes ) {
*/
public static function activation_hook() {
self::register_post_types();
self::register_taxonomies();
flush_rewrite_rules(); // phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.flush_rewrite_rules_flush_rewrite_rules
}
}
Expand Down

0 comments on commit f7ca356

Please sign in to comment.