~$ cd /var/www/your-site-folder/wp-content/ ~$ svn export http://i18n.svn.wordpress.org/tools/trunk/ makepot ~$ cd plugins/your-plugin-folder/languages ~$ php /var/www/your-site-folder/wp-content/makepot/makepot.php wp-plugin ../ With the last option you need to specify if you are creating a POT for a plugin or for a theme (for themes, use “wp-theme” instead of “wp-plugin”) and the last command line parameter is the plugin/theme folder (in this case ../ is pointing […]
tail -f /var/log/apache2/error.log | perl -pe ‘s/\[error\]\s+\[client.*?\]\s+//; s/, referer:.*//’
To selectively merge files from one branch into another branch, run where: branchX is the branch you want to merge from into the current branch The –no-commit option will stage the files that have been merged by Git without actually committing them. This will give you the opportunity to modify the merged files however you want to and then commit […]
The problem I’m the manager of an e-commerce based on WooCommerce and sometimes I need to manually create orders for my clients. I also wish that my client receives an email with the link to pay that order. Pre-requisites – WooCommerce, preferably updated to one of the latest versions. The solution Create a WordPress user, specifying the role “Customer” and […]
What follows is a small tip to create an extension of the base “text” widget of WordPress, to allow the execution of shortcodes and to allow to specify one or more classes (space separated) per-widget. In this way it will be really simple identify the widget in our CSS. The class is really simple to manage and extend (if you […]
This command will return the list of concurrent connections to your machine.