Comments (7)
Yes you just copy the package array and change the slug and version info for each new plugin or theme.
It doesn't matter what you prefix the functions with as long as its unique to that plugin or theme. Also keep in mind the global variables should be prefixed as well. This is just to keep from getting function exists errors. You won't have to do anything on the API side.
Writeups about this are always welcome. I'm also hoping to have time to convert this into a full blown web app, that I might sell, with an admin panel to make update tasks easier.
Chris Christoff [email protected] wrote:
I want to use this to distribute updates to my (at current time) 7 plugins and 3 themes. I presume, on the api side, I just need to copy and paste the template for the theme and plugin information over and over and just change the slug contained in packages['slug']. However, what do I need to change on the update.php file. It says that I need to prefix all functions. I presume that only applies to update.php. Although, one question I do have is does it matter what I prefix them with? In other words, if I prefix them with 'ex' do I need to prefix anything on the api side with 'ex'. I am assuming no, because the api side uses the slug of the plugin/theme.
Is this correct?
FYI, I really appreciate the amount of time spent making this, and as soon as I get our new site up and running (just got to get the update feature working), I might spend a couple blog posts on your plugin if you don't mind :) .
Reply to this email directly or view it on GitHub:
#9
from automatic-theme-plugin-update.
Ok thank you.
Noticed you created the Software Add-on for Jigoshop, and actually I am
going to be using this plugin to help me distribute plugins for Jigoshop as
well (Duplicate Product, (coming soon) CSV Loader, (coming soon)
WooCommerce to Jigoshop).
Thank you for your support of the Jigoshop community
-Chris
On Sunday, July 22, 2012, Jeremy Clark wrote:
Yes you just copy the package array and change the slug and version info
for each new plugin or theme.It doesn't matter what you prefix the functions with as long as its unique
to that plugin or theme. Also keep in mind the global variables should be
prefixed as well. This is just to keep from getting function exists errors.
You won't have to do anything on the API side.Writeups about this are always welcome. I'm also hoping to have time to
convert this into a full blown web app, that I might sell, with an admin
panel to make update tasks easier.Chris Christoff <[email protected] javascript:;> wrote:
I want to use this to distribute updates to my (at current time) 7 plugins
and 3 themes. I presume, on the api side, I just need to copy and paste the
template for the theme and plugin information over and over and just change
the slug contained in packages['slug']. However, what do I need to change
on the update.php file. It says that I need to prefix all functions. I
presume that only applies to update.php. Although, one question I do have
is does it matter what I prefix them with? In other words, if I prefix them
with 'ex' do I need to prefix anything on the api side with 'ex'. I am
assuming no, because the api side uses the slug of the plugin/theme.
Is this correct?FYI, I really appreciate the amount of time spent making this, and as soon
as I get our new site up and running (just got to get the update feature
working), I might spend a couple blog posts on your plugin if you don't
mind :) .
Reply to this email directly or view it on GitHub:
#9
Reply to this email directly or view it on GitHub:
from automatic-theme-plugin-update.
Ok I am having issues with getting this to work. I am using the key required download, but I believe my issue starts before I get to that point. Do you have an email I can send a zip with a copy of the plugin and configuration I have and you can see what I am doing wrong?
from automatic-theme-plugin-update.
Chris Christoff [email protected] wrote:
Ok I am having issues with getting this to work. I am using the key required download, but I believe my issue starts before I get to that point. Do you have an email I can send a zip with a copy of the plugin and configuration I have and you can see what I am doing wrong?
Reply to this email directly or view it on GitHub:
#9 (comment)
from automatic-theme-plugin-update.
Its on the way.
-Chris
On Sunday, July 22, 2012, Jeremy Clark wrote:
[email protected] javascript:;
Chris Christoff <[email protected] javascript:;> wrote:
Ok I am having issues with getting this to work. I am using the key
required download, but I believe my issue starts before I get to that
point. Do you have an email I can send a zip with a copy of the plugin and
configuration I have and you can see what I am doing wrong?
Reply to this email directly or view it on GitHub:
Reply to this email directly or view it on GitHub:
from automatic-theme-plugin-update.
When I try to manually update it using the built in WordPress plugin feature it says that it is the latest version. Obviously my server side says the new version is 1.1 and I've tried setting the installed version to 0.1.
from automatic-theme-plugin-update.
Just decided to try something different. Modified the api to use MD5 hashes, and I like how it works now. Closing this for now.
from automatic-theme-plugin-update.
Related Issues (20)
- License information HOT 6
- An error occurred while updating... HOT 2
- Multisite $checked_data->checked[$pluginname] empty HOT 5
- Help me, it can not run in my theme
- download.tmp
- WP Network Multisite HOT 3
- Error when viewing plugin version details HOT 3
- Solving WordPress server error message in Add New theme screen HOT 1
- The
- causing a [PHP Fatal error: Call to undefined function auth_redirect()] HOT 1
- Doesn't work with filter 'pre_set_site_transient_update_themes'
- Cannot modify header information HOT 2
- Update theme works but wrong theme folder name HOT 1
- is this still working? i can't get it to work HOT 1
- Afte update Plugin Folder name is appended with some strings HOT 1
- plugin update failed HOT 1
- f(x) Updater - Auto Update Theme & Plugin With UI
- Child Theme - theme X update process - no update
- Recent Issues - Wordpress 5.5 HOT 1
- Theme update results in new theme folder name of "download-XXXX" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from automatic-theme-plugin-update.