I was attempting to make the author permalink into ‘/profile’ instead of ‘/author’, so I added this code to my themes function file, and it didn’t work:
add_filter('init', create_function('$a', 'global $wp_rewrite; $wp_rewrite->author_base = "profile"; $wp_rewrite->flush_rules();'));
Now my blog is giving errors, such as IE saying error in ‘Line 1 Char 1 Object expected Code 0’….
How do I remove this filter and get rid of this error? Thanks for the help.
- The topic ‘Add_filter caused errors — how do I properly remove this filter?’ is closed to new replies.