Created
January 25, 2021 15:01
-
-
Save yousufansa/e6f50cf027b0c984226ba0a96c0830ff to your computer and use it in GitHub Desktop.
Front - Change the Custom Story Post Type Slug
This file contains hidden or 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
if( ! function_exists( 'front_child_customize_customer_story_slug' ) ) { | |
function front_child_customize_customer_story_slug( $args ) { | |
if( isset( $args['rewrite'] ) && isset( $args['rewrite']['slug'] ) ) { | |
$args['rewrite']['slug'] = 'team'; | |
} | |
return $args; | |
} | |
} | |
add_filter( 'front_extensions_register_post_type_customer_story', 'front_child_customize_customer_story_slug' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment