Author: Rubel
I’m Rubel Miah. I love my work and enjoys creating stunning WordPress Themes. I’m a WordPress fanatic & started career with WordPress Theming & still on it. When I remain free I do photo shooting & write blog.

How to setup WPCS with Visual Studio Code

Step 1: Install PHP
Composer requires PHP 5.3 or higher… to install PHP (7.2) on Ubuntu, run the commands below

Step 2: Install Composer

Now that PHP is installed… you can now run the commands below to install Composer

Continue Reading

How to create .gitignore file

The .gitignore file is not added to a repository by default. Use terminal touch .gitignore or your favorite text editor to create the .gitignore file then issue a git add .gitignore followed by git commit -m "message" .gitignore. The following commands will take care of it.

Code from

.gitignore file generator or generated code

Adding WordPress ColorPicker in Widget

Script

Widget color picker code.

Git Commands

Creating tags from the command line:

To create a tag on your current branch, run this:

If you want to include a description with your tag, add -a to create an annotated tag:

This will create a local tag with the current state of the branch you are on. When pushing to your remote repo, tags are NOT included by default. You will need to explicitly say that you want to push your tags to your remote repo:

From the official Linux Kernel Git documentation for git push:

All refs under refs/tags are pushed, in addition to refspecs explicitly listed on the command line.

Or if you just want to push a single tag:

See also my answer to How to push a tag to a remote repository using Git? for more details about that syntax above.

Add custom field to WooCommerce product category