Skip to content

Commit

Permalink
Make Custom Content Types settings order consistent between Simple an…
Browse files Browse the repository at this point in the history
…d Atomic (#36866)
  • Loading branch information
DustyReagan authored Apr 12, 2024
1 parent 3519ec5 commit cd0cd60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Update Testimonials CPT priority so it always appears below Portfolio Projects
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public function __construct() {
* only if the site supports it
*/
public function maybe_register_cpt() {
// Add an option to enable the CPT
add_action( 'admin_init', array( $this, 'settings_api_init' ) );
// Add an option to enable the CPT. Set the priority to 11 to ensure "Portfolio Projects" appears above "Testimonials" in the UI.
add_action( 'admin_init', array( $this, 'settings_api_init' ), 11 );

// Check on theme switch if theme supports CPT and setting is disabled
add_action( 'after_switch_theme', array( $this, 'activation_post_type_support' ) );
Expand Down

0 comments on commit cd0cd60

Please sign in to comment.