Created
May 30, 2020 15:54
-
-
Save cristianstan/ead0def35eb8b6efcb37d0048e61bf76 to your computer and use it in GitHub Desktop.
Wordpress Override Custom Post Tyle Slug.php
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
<?php | |
add_filter( 'register_post_type_args', 'modeltheme_register_post_type_args', 10, 2 ); | |
function modeltheme_register_post_type_args( $args, $post_type ) { | |
if ( 'mt_listing' === $post_type ) { | |
$args['rewrite']['slug'] = 'new-casino-slug'; /*ADD YOUR OWN SERMON SLUG ONLY ON THIS LINE */ | |
} | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment