diff --git a/projects/plugins/jetpack/changelog/update-testimonial-cpt-priority b/projects/plugins/jetpack/changelog/update-testimonial-cpt-priority new file mode 100644 index 0000000000000..c55831f84e31e --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-testimonial-cpt-priority @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +Update Testimonials CPT priority so it always appears below Portfolio Projects diff --git a/projects/plugins/jetpack/modules/custom-post-types/testimonial.php b/projects/plugins/jetpack/modules/custom-post-types/testimonial.php index 8beebb06bacfa..f90ee7553be73 100644 --- a/projects/plugins/jetpack/modules/custom-post-types/testimonial.php +++ b/projects/plugins/jetpack/modules/custom-post-types/testimonial.php @@ -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' ) );