Last active
November 17, 2020 07:53
-
-
Save jonathanbossenger/80ef92bd90bbfa12dd04519a213efed4 to your computer and use it in GitHub Desktop.
Customise default series taxonomy for SSP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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