Add_filter caused errors -- how do I properly remove this filter? (1 post)

  1. arkane8
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic