Turn Hacks into a Plugin? (3 posts)

  1. youngmicroserf
    Posted 8 years ago #

    Hi, I've been applying some hacks to my wordpress installation - like adding additional parameters to some functions and using specific db queries in that case.

    Would it be possible to turn these hacks, say, a specific get_categories function into a plugin so it would be safe in case of an update?

    I've never written a plugin, so if it's possible, would this be simple or time consuming if the hack in the source is working well?

  2. sfong15
    Posted 8 years ago #

    Hacks should always be turned into a plugin. You'll soon forget why and how you did the hacks but if it's a plugin it could be well documented with clean interface. You'll have nothing to worry about even if you switch between themes.

    It's not difficult at all.

  3. youngmicroserf
    Posted 8 years ago #

    Thanks - I'll try it :).

Topic Closed

This topic has been closed to new replies.

About this Topic