Today I re-memorized the setup of WooCommerce set up by practicing re-learn WooCommerce big picture.
Continue reading “Tax rule setup in WooCommerce”Git flow: A overview
Today I learn “how to use git-flow” Git flow is a system to maintain git branching efficiently. Love it. However, I like to share my experience.
Continue reading “Git flow: A overview”Minimum PHP version for WordPress
WordPress is often treated as old days PHP student for not using latest version of PHP. But, now WordPress is going to bigger. It is that, WordPress 5.2 need minimum PHP 5.6. That means, we can use many PHP keyword and modernize our application.
WordPress will be need PHP 7 soon.
( … ) Variable-length argument lists
In programming, there are many ways to solve a problem. But, everyone likes to easy and short solution.
The reason of telling that, PHP has a syntax token that will make my day. This is called Argument unpacking token or Variable-length argument lists token. This is typed with three dots ( … ). This is safe to use for 5.6 or latest version. For example,
function sum( ...$numbers ) { $acc = 0; foreach ( $numbers as $n ) { $acc += $n; } return $acc; } echo sum( 1, 2, 3, 4 );
return output 10 as 1+2+3+4=10.
Hello Gatsby
Today I publish gatsby static site at https://blissful-mcnulty-5669ea.netlify.com/.
Really nice to build and connect gatsby static sites with dynamic WordPress. 🙂
Hello GreenSock
GreenSock is an awesome animation library. I will say hello to GreenSock with the react app.
Continue reading “Hello GreenSock”Custom WordPress REST API
Currently, I am using wpdb plugin boilerplate. For this quick experiment, I create a plugin name with code
Setup for Gutenberg Block
Create a folder named guten-awesome
in /wp-content/plugins/. Inside guten-awesome
folder creates a starting file for our plugin. It can be any name. Which file has plugin header, this would be the main file. For simplicity, let it plugin.php
Installing VVV
VVV ( Varying Vagrant Vagrants) is a 10up.com creation to easily setup WordPress environment. VVV includes long list of development tools that will be time consuming and complex to set up manually. Currently, by installing VVV we will get 25 tools.
Continue reading “Installing VVV”Start Gatsby with WordPress
Gatsby is now a day’s roar in the progressive web app. In this post, we will develop a workflow to integrate Gatsby with WordPress.
To integrate WordPress with Gatsby, the first step is set pretty permalink in WordPress. This enables us to use RESTful API from Gatsby app.
Continue reading “Start Gatsby with WordPress”