Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function pm_convert_slashes($slug, $object) {
- $title = (!empty($object->post_title)) ? $object->post_title : $object->name;
- return sanitize_title(str_replace('/', '-', $title));
- }
- add_filter('permalink_manager_filter_default_term_slug', 'pm_convert_slashes', 99, 2);
- add_filter('permalink_manager_filter_default_post_slug', 'pm_convert_slashes', 99, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement