Vagrant + Chef + WordPress

This is a Vagrant configuration designed for development of WordPress plugins, themes, or websites.

Overview

  • This Vagrant configuration has various settings you can change:
  • Customizable URL (default: http://wordpress.local/)
  • Debug mode is enabled by default
  • SSL is enabled by default
  • Automatic installation & activation of plugins and themes at the time of provisioning:
    • default plugins: theme-check, plugin-check, hotfix
    • default theme: none
  • Optional import of theme unit test data
  • Pre-installed wp-cli
  • Shares folders between Host and Guest OS

Getting Started

  1. Install VirtualBox.
    https://www.virtualbox.org/
  2. Install Vagrant.
    http://www.vagrantup.com/
  3. Install the vagrant-hostsupdater plugin.

    $ vagrant plugin install vagrant-hostsupdater
  4. Clone the repository into a local directory.

    $ git clone https://github.com/miya0001/vagrant-chef-centos-wordpress.git vagrant-wp
  5. Change into a new directory.

    $ cd vagrant-wp
  6. Copy the default Vagrantfile.

    $ cp Vagrantfile.sample Vagrantfile
  7. Start a Vagrant environment.

    $ vagrant up
  8. Visit http://wordpress.local/

See more information.

Thanks!

TinyMCE Templates 2.6.0

TinyMCE Templates 2.6.0 available.

WordPress › TinyMCE Templates « WordPress Plugins

Following Filter Hoooks are added.

  • “tinymce_template_title” – You can customize template title.
  • “tinymce_template_excerpt” – You can customize template excerpt.

qTranslate fix

add_filter("tinymce_template_title", "qtranslate_fix");

function qtranslate_fix($title) {
    return qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($title);
}

Thanks willytk ! 🙂