Modifying plugin without getting in the way of upgrade?
WPMU DEV Community
Modifying plugin without getting in the way of upgrade?
Inactive
7 pointsGetting my WPMU DEV WingsI'm new here
sarahdopp
Member
—
1st March 2011 (1 year ago)
I'm digging into my Marketpress setup, and have a bunch of customizations (mostly UI) that I want to make. But I'd also really, if at all possible, like to avoid directly modifying that plugin folder directly, in an effort to keep the upgrade process as painless as possible.
My background is in CSS, so I'm finding myself looking for a way to "cascade" PHP changes -- like copying chunks of code and putting them into another plugin file or the theme folder somewhere -- so they'll override the default functionality.
Are there any best practices or slacker hacks for that kind of approach? I'm digging and searching, but I haven't found any leads yet.
I'm digging into my Marketpress setup, and have a bunch of customizations (mostly UI) that I want to make. But I'd also really, if at all possible, like to avoid directly modifying that plugin folder directly, in an effort to keep the upgrade process as painless as possible.
My background is in CSS, so I'm finding myself looking for a way to "cascade" PHP changes -- like copying chunks of code and putting them into another plugin file or the theme folder somewhere -- so they'll override the default functionality.
Are there any best practices or slacker hacks for that kind of approach? I'm digging and searching, but I haven't found any leads yet.
It seems that MarketPress has been built for customization and hopefully, you won't find yourself having to get so deep in PHP code.
To start off, you'll find the following in the MarketPress zip file provides some basic groundwork:
marketpress\marketpress-includes\themes\Themeing_MarketPress.txt
That file references the following which provides lots of well commented functions:
marketpress\marketpress-includes\template-functions.php
Following the basic guidelines outlined in Themeing_MarketPress.txt, you can create PHP template files and use the functions from template-functions.php to customize the MarketPress display without actually touching the plugin code.
Hope that helps! Please let me know if you have any questions regarding this!
Responses (3)
WPMU DEV Fanatic — 1st March 2011 (1 year ago) #
Hello Sarah,
It seems that MarketPress has been built for customization and hopefully, you won't find yourself having to get so deep in PHP code.
To start off, you'll find the following in the MarketPress zip file provides some basic groundwork:
marketpress\marketpress-includes\themes\Themeing_MarketPress.txt
That file references the following which provides lots of well commented functions:
marketpress\marketpress-includes\template-functions.php
Following the basic guidelines outlined in Themeing_MarketPress.txt, you can create PHP template files and use the functions from template-functions.php to customize the MarketPress display without actually touching the plugin code.
Hope that helps! Please let me know if you have any questions regarding this!
Cheers,
David
Member — 1st March 2011 (1 year ago) #
Aha! So, basically, "read the instructions."
D'oh.
Thank you!!
Member — 1st March 2011 (1 year ago) #
<marking resolved>
Become a member