wp cli arguments vs associated arguments

In a recent article, we learn about the $assoc_args and $args in the WP CLI program. Now, Let’s try some examples of $args and $assoc_args. Note: If you read some recent articles then you can skip some below steps. Create Empty Plugin #Create Empty Plugin Create a new folder wordpress-examples into plugins directory /wp-content/plugins/ Create

Read More »

Understanding the WP CLI associate arguments

In a recent article, we learn about WP CLI arguments or $args. If you have not read it yet then you can first read the article Understanding the WP CLI arguments. Below is some code which may you already have done in a recent article. So, you can skip some below steps. Okay. In this

Read More »

Understanding the WP CLI arguments

In a recent article, we learn about creating the first WP CLI Hello World program. If you read that article then you can skip some below steps. Now, We are going to understand the WP CLI arguments or $args parameter from the WP CLI command. First, we’ll create a simple plugin and then understand the

Read More »

Create a first WP CLI Hello World Program

We learn how to install the WP CLI. Now, Let’s create a simple WP CLI hello world program. We are going to create a new plugin that contains the WP CLI hello world program. Create Empty Plugin #Create Empty Plugin Create a new folder wordpress-examples into plugins directory /wp-content/plugins/ Create a file wordpress-examples.php and add

Read More »
Dev Notes
Mahesh Waghmare

Auto translate WordPress theme and plugin strings with WP CLI

How to use? #How to use? Create fresh WordPress setup. Clone the plugin wp-i18n into your /wp-content/plugins/ directory. Import the database latest.sql with WP CLI commnd as below:wp db import latest.sql Now use below commands to translate any plugin/theme from wp.org. To translate the plugin use 2 WP CLI commands: Here, download_plugin_po & generate_plugin_po are

Read More »
Dev Notes
Mahesh Waghmare

Setup WP CLI (WordPress Command Line Interface) on Windows Operating System

Step 1 #Step 1 Create folder wp-cli in C drive. Step 2 #Step 2 Download wp-cli.phar from https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar Step 3 #Step 3 Move downloaded wp-cli.phar file in C:\wp-cli\ Step 4 #Step 4 Create wp.bat file in C:\wp-cli\ and write below code in it. Or download file from gist https://gist.github.com/maheshwaghmare/848b5a9f21f27239600cf08693a0bedb Step 5 #Step 5 Open system

Read More »

Keyboard shortcut/aliases for the WP CLI, Git, Grunt & PHPCS commands for windows

In development, We spend a lot of time on the command line. We type a lot of commands on regularly. I have created a shortcut for the most of the commands which I use on a daily basis some of them are below: WP CLI Command Keyboard Shortcut/Aliases wp theme list wpthl wp plugin list

Read More »

WP CLI Commands Cheat Sheet (Complete List of WP CLI Commands)

WP-CLI is the command-line interface for WordPress. You can update plugins, configure multisite installs and much more, without using a web browser. Below is the complete list of WP CLI commands generated with WP CLI Commands Cheat Sheet (Complete List of WP CLI Commands) Cache wp cache add Docs | Git wp cache decr Docs | Git

Read More »
Scroll to Top
%d bloggers like this: