WordPress.org

Ready to get started?Download WordPress

Forums

Turn Hacks into a Plugin? (3 posts)

  1. youngmicroserf
    Member
    Posted 7 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
    Member
    Posted 7 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
    Member
    Posted 7 years ago #

    Thanks - I'll try it :).

Topic Closed

This topic has been closed to new replies.

About this Topic