by Kaspars Dambis -- konstruktors.com / @konstruktors
We'll assume that your plugin is already hosted on the official WordPress plugin Subversion repository, and we'll use the Easy Digital Downloads plugin as an example.
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'mechanize' | |
| require 'yaml' | |
| config = YAML.load_file(File.expand_path("~/.simple-note-backup.yml")) | |
| email = config['email'] | |
| password = config['password'] |
by Kaspars Dambis -- konstruktors.com / @konstruktors
We'll assume that your plugin is already hosted on the official WordPress plugin Subversion repository, and we'll use the Easy Digital Downloads plugin as an example.
##Given Apache 2 and MySQL are already installed.
#Update MacPorts sudo port selfupdate;sudo port -u upgrade outdated
#Install PHP 5.4.* sudo port install php54 php54-apache2handler ##Activate Apache Module cd /opt/local/apache2/modules
| <?php | |
| // config.php | |
| // place this at the top of your config.php file | |
| date_default_timezone_set('Europe/Berlin'); | |
| setlocale(LC_TIME, 'de_DE'); | |
| // index.php | |
| // replace the date() function with a localized version (around lines 48 and 150) |
| createRecord: function(store, storeKey) { | |
| if (SC.kindOf(store.recordTypeFor(storeKey), Library.Slideshow)) { | |
| SC.Request.postUrl('/api/slideshow').header({ 'Accept': 'application/json' }).json() | |
| .notify(this, this.didCreateRecord, store, storeKey) | |
| .send(store.readDataHash(storeKey)); | |
| return YES; | |
| } |