Skip to content

Commit a964937

Browse files
committed
Change permalink slug to ai/podcast
1 parent b16f4ed commit a964937

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

themes/osi/functions.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,3 +507,17 @@ function osi_handle_supporter_form_flamingo_spam_status_change( string $new_stat
507507
}
508508
}
509509
add_action( 'transition_post_status', 'osi_handle_supporter_form_flamingo_spam_status_change', 10, 3 );
510+
511+
/**
512+
* Modify the post type arguments for the podcast post type.
513+
*
514+
* @param array $args The post type arguments.
515+
*
516+
* @return array The modified post type arguments.
517+
*/
518+
function osi_ssp_register_post_type_args( $args ) {
519+
$args['rewrite']['slug'] = 'ai/podcast';
520+
$args['rewrite']['with_front'] = false;
521+
return $args;
522+
}
523+
add_filter( 'ssp_register_post_type_args', 'osi_ssp_register_post_type_args', 10, 1 );

0 commit comments

Comments
 (0)