Introduction What is the version bump? When we build any package release then we set up the Install NPM Packages Install npm package grunt-bumpup To install the NPM package use below command: Output of the above command is looks like this: D:\xampp\htdocs\dev.test\wp-content\plugins\astra-sites (dev) (Astra Sites@2.0.0) λ npm i grunt-bumpup npm notice created a lockfile as
Grunt JS
WordPress 5.5 – Release, Features, and more..
WordPress 5.5 Release comes with amazing features including Auto-update, Sitemaps, Lazy-loading images, block directory, and more… We are going to see: Release WordPress 5.5 version release date is scheduled on 11 August 2020. Features Auto-update Security is one of the major concern for any website. WordPress Theme and Plugin developers constantly releasing updated which are
Create a Gutenberg Block
In this article you are going to see how to create Gutenberg block. You are going to learn: Overview This article is one of the parts of the series Gutenberg Development: Beginner to Advanced. I am explaining all the details for considering the article for beginner developers. After reading this article you can easily understand
Advertisement
Gutenberg Development: Beginner to Advanced
Gutenberg is merged into WordPress core from 5.0. Gutenberg is not limited for the Editor. Gutenberg is now using outside the editor. Below are some places in WordPress which are build with Gutenberg. The Customizer The Widgets screen The Menu screen The Gutenberg development phase 2 has some important improvements which include Global Styles, Block
Use the WP_Query in WP CLI command
In this article let’s learn about how to execute the WP_Query into the WP CLI commands. Note: If you read some recent articles then you can skip some below steps that are related to plugin creation. Register WP CLI Command Register PHP class WordPress_Examples_WP_CLI e.g. if ( ! class_exists( ‘WordPress_Examples_WP_CLI’ ) && class_exists( ‘WP_CLI_Command’ )
Using WP_CLI::confirm() with an associate argument in WP CLI
In this article we are going to learn about WP_CLI::confirm() with associate argument. Note: If you read some recent articles then you can skip some below steps that are related to plugin creation. Register WP CLI Command Register PHP class WordPress_Examples_WP_CLI e.g. if ( ! class_exists( ‘WordPress_Examples_WP_CLI’ ) && class_exists( ‘WP_CLI_Command’ ) ) : class
How to use WP_CLI::confirm() in WP CLI
In this article let’s learn about WP_CLI::confirm() function. Note: If you read some recent articles then you can skip some below steps that are related to plugin creation. Create Empty Plugin Create a new folder wordpress-examples into plugins directory /wp-content/plugins/ Create a file wordpress-examples.php and add the below code into it. <?php /** Plugin Name:
Advertisement
Executing WP CLI commands inside WP CLI command with WP_CLI::runcommand()
In this article let’s learn about how to execute another WP CLI commands. Note: If you read some recent articles then you can skip some below steps that are related to plugin creation. Create Empty Plugin Create a new folder wordpress-examples into plugins directory /wp-content/plugins/ Create a file wordpress-examples.php and add the below code into
Display data in the table, JSON or CSV format with WP CLI Formatter
From the last few articles, we are familiar with the WP CLI command. In this article let’s learn about how to display custom data in the table, JSON or CSV format. Note: If you read some recent articles then you can skip some below steps that are related to plugin creation. Create Empty Plugin Create
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 a new folder wordpress-examples into plugins directory /wp-content/plugins/ Create a file wordpress-examples.php
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
Advertisement
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
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 a new folder wordpress-examples into plugins directory /wp-content/plugins/ Create a file wordpress-examples.php and add the below code
Adding image sizes with add_image_size() in WordPress
Introduction We can add custom image sizes with function add_image_size(). But, First, let’s discuss why we need custom images in WordPress? By default, WordPress provides 3 image sizes. Means, When we upload any image in WordPress media library then WordPress creates 3 image sizes for us. These image sizes are: Thumbnail (150×150) Medium (300×300) Large