WordPress.org

Ready to get started?Download WordPress

Forums

More information on replacement plugins? (4 posts)

  1. pixeldiva
    Member
    Posted 7 years ago #

    I have been editing the wp_list_pages function in my WordPress installation, via help from this thread: http://wordpress.org/support/topic/85901?replies=5

    Without taking away from that thread, I wanted to ask a question spurred from the last entry related to replacement plugins.

    I've seen it mentioned that there are plugins to help you customize WordPress functions, and assist in making your own (I'm assuming that if you make your own, they won't be affected by an upgrade of WordPress).

    What is this all about, and how does it work? I can modify the code a function outputs adequately most times, but am not familiar with writing my own functions. I don't quite understand how these plugins work.

    My goal is to modify the code output by the wp_list_pages function (and associated CSS) and not have it affected by an upgrade.

  2. pixeldiva
    Member
    Posted 7 years ago #

    Anyone?

  3. pixeldiva
    Member
    Posted 7 years ago #

    If I have posted this in the wrong place, or ask amiss; could someone please point me in the right direction?

  4. Kafkaesqui

    Posted 7 years ago #

    I'm not a mind reader (well I'm not!), but I assume what's meant is, if you need to rewrite WP core functions, one way to go about it is to copy the functions into a plugin of your own, then make your modifications there.

    Beyond the fact you'll need to rename the functions and whatnot to avoid conflicts with WordPress' stuff, it's a smart way to customize the WordPress source. And it lets you retain your work between upgrades and such without having to keep track of your mods, change core code, etc.

Topic Closed

This topic has been closed to new replies.

About this Topic