diff --git a/themes/osi/functions.php b/themes/osi/functions.php index 386280f..03765a6 100755 --- a/themes/osi/functions.php +++ b/themes/osi/functions.php @@ -578,3 +578,18 @@ function osi_register_ai_menu() { add_filter( 'jetpack_disable_tracking', '__return_true' ); + +/** + * Modify the post type arguments for the podcast post type. + * + * @param array $args The post type arguments. + * + * @return array The modified post type arguments. + */ +function osi_ssp_register_post_type_args( $args ) { + $args['rewrite']['slug'] = 'ai'; + $args['rewrite']['with_front'] = false; + return $args; +} +add_filter( 'ssp_register_post_type_args', 'osi_ssp_register_post_type_args', 10, 1 ); +