Skip to content

Instantly share code, notes, and snippets.

@jonathanbossenger
Last active November 17, 2020 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanbossenger/80ef92bd90bbfa12dd04519a213efed4 to your computer and use it in GitHub Desktop.
Save jonathanbossenger/80ef92bd90bbfa12dd04519a213efed4 to your computer and use it in GitHub Desktop.
Customise default series taxonomy for SSP
// Override the series slug, used by WordPress permalinks
// Replace my_ with a custom prefix relevant to your project
add_filter( 'ssp_series_slug', 'my_custom_ssp_series_slug' );
function my_custom_ssp_series_slug( $slug ) {
return 'podcast_series'
}
// Override the series taxonomy key, used to create the custom taxonomy
// Replace my_ with a custom prefix relevant to your project
add_filter( 'ssp_series_taxonomy', 'my_custom_ssp_series_taxonomy' );
function my_custom_ssp_series_taxonomy( $series_taxonomy ) {
return 'podcast_series'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment