Skip to content

Commit a978763

Browse files
committed
Custom permalink slug for podcasts
1 parent b4d4621 commit a978763

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

themes/osi/functions.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,3 +578,18 @@ function osi_register_ai_menu() {
578578

579579

580580
add_filter( 'jetpack_disable_tracking', '__return_true' );
581+
582+
/**
583+
* Modify the post type arguments for the podcast post type.
584+
*
585+
* @param array $args The post type arguments.
586+
*
587+
* @return array The modified post type arguments.
588+
*/
589+
function osi_ssp_register_post_type_args( $args ) {
590+
$args['rewrite']['slug'] = 'ai';
591+
$args['rewrite']['with_front'] = false;
592+
return $args;
593+
}
594+
add_filter( 'ssp_register_post_type_args', 'osi_ssp_register_post_type_args', 10, 1 );
595+

0 commit comments

Comments
 (0)