Skip to content

Commit 3f223f0

Browse files
authored
Merge pull request #176 from OpenSourceOrg/add/dev/174-podcast-template
Custom permalink slug for podcasts (dev)
2 parents 2327d12 + a978763 commit 3f223f0

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)