Last active
December 5, 2019 03:41
-
-
Save mrkdevelopment/7366f2c0087d88b4351b9182a2c00aa1 to your computer and use it in GitHub Desktop.
FAQ post type permalink fix.
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
<?php | |
function mrkwp_faq_posttype_fix_register_post_type_args( $args, $post_type ) | |
{ | |
if ($post_type == "faq" ) { | |
$args['rewrite'] = array( | |
'slug' => false, | |
); | |
} | |
return $args; | |
} | |
add_filter('register_post_type_args', 'mrkwp_faq_posttype_fix_register_post_type_args', 9999, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment