Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('post_link', 'change_permalink', 10, 2);
- function change_permalink($permalink, $post) {
- $suffix = get_daily_suffix();
- return str_replace('/posts/', '/' . $suffix . '/', $permalink);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement