Run test command with composer

For PHPUnit test, you might have different version for your local dependency and global installation. You might have installed latest version of composer globally and older version of composer for you local project like me. For globally you can run phpunit command from your terminal. But for the local project with different dependency you can… Continue reading Run test command with composer

Setup WordPress using WP CLI

Setup WordPress using WP CLI is very comfortable who use WP CLI in their daily development process. At first you need to have WP CLI installed in you local machine. In order to check, run wp command inside your terminal. Here is what I got running wp command. Now its time play around. Open your… Continue reading Setup WordPress using WP CLI

Published
Categorized as WP CLI

Solve mysql is not recognized as an internal or external command

In command terminal of windows 10, mysql command is not rea By default windows 10 command terminal does not recognize mysql command. You need to add your server mysql path in you environment variable. Go to you server mysql path like mine. Add the above path in you environment variable. If you don’t know how… Continue reading Solve mysql is not recognized as an internal or external command

Set up nvm in Windows 10

In order to use nvm you need to install in through .exe file. Here is the link to download nvm. Browse this link and download nvm-setup.zip file. Simply extract and install the exe file. Now playground is ready to play. In my case my node version was 12.18.2 . In my development process, there is… Continue reading Set up nvm in Windows 10

How to create custom post type in WordPress

WordPress comes with some default post type. Those are reserved in WordPress. You can create your own post type. Creating a post type in WordPress is nothing but a simple block of code. You just need to define your post type name and some array or string of arguments to register custom post type.