From bd1b2dba48933c2642adaa1840e7238f65346935 Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Fri, 24 Apr 2026 10:11:03 +0700 Subject: [PATCH] feat: extract peptide_topic taxonomy to own class --- includes/cpt/class-pr-core-topic-taxonomy.php | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 includes/cpt/class-pr-core-topic-taxonomy.php diff --git a/includes/cpt/class-pr-core-topic-taxonomy.php b/includes/cpt/class-pr-core-topic-taxonomy.php new file mode 100644 index 0000000..9dcf5f5 --- /dev/null +++ b/includes/cpt/class-pr-core-topic-taxonomy.php @@ -0,0 +1,62 @@ + [ + 'name' => __( 'Peptide Topics', 'peptide-repo-core' ), + 'singular_name' => __( 'Peptide Topic', 'peptide-repo-core' ), + ], + 'public' => true, + 'publicly_queryable' => true, + 'show_in_rest' => true, + 'show_ui' => true, + 'show_admin_column' => true, + 'hierarchical' => false, + 'rewrite' => [ 'slug' => 'peptide-topic', 'with_front' => false ], + ] ); + } +}