Advertisement

Semantic Versioning

The software version format MILESTONE.MAJOR.MINOR.PATCH. Table of content: Major milestone (E.g. 1.x.x.x, 2.x.x.x) New features, redesign of the UI, or new developer features, with backward compatibility Major updates (E.g. x.1.x.x, x.2.x.x) New settings/actions/filters plus bug fixes. Minor updates (E.g. x.x.1.x, x.x.2.x) Bug fixes and possibly minor enhancements.The need for a minor update is reviewed at

Markdown Syntax

Markdown is a way to style text on the web. You control the display of the document; forming words as bold or italic, adding images, and creating lists are just a few of the things we can do with Markdown. Markdown is just regular text with a few non-alphabetic characters thrown in, like # or

Add Multiple Projects in VSCode

In this article we are going to see how to add multiple projects in VSCode. Step 1: Open VSCode Workspace Below is the screenshot of my existing workspace. In my workspace I have two plugins. Cartflows and Cartflows Server. Step 2: Add Folder to Workspace To add a new folder in current workspace click on

Advertisement

Var vs Let vs Const

Let’s see what is the difference between the var, let, and const in the JavaScript. In this article we are going to see: var All we are familiar with the var keyword. We use it to define the variables. The variables which are not defined with keyword var are considered as var keywords. E.g. var

JavaScript

In this course we are learning the JavaScript with new ES6 features. var vs let vs const

Install PHPCS

Installation Install PHP Code Sniffer You can see something similar: Install WordPress Coding Standerds Like: Create phpcs.xml.dist file. Now we need to create the PHPCS file and add the rules which allow: PHPCS sniffs. PHPCS sniffs are the rulesets which are required to install to check the code against that ruleset. When we try to

@wordpress/autop

The Autop is a simple Gutenberg module which add or remove the <p> tags from the provided content. Installation Usage Using the autop function The above code convert the string ‘ Hello World’. Using the removep function The above code convert the string ‘Hello World’.

Advertisement

List of all CURL errors and the reasons

Below is the list of all CURL errors and the reasons behind these errors. CURL error code 0 – CURLE_OK (0) All fine. Proceed as usual. CURL error code 1 – CURLE_UNSUPPORTED_PROTOCOL (1) The URL you passed to libcurl used a protocol that this libcurl does not support. The support might be a compile-time option

Debugging WordPress Cron with WP CLI

Check Cron is supported or not Tests the WP Cron spawning system and reports back its status. This command tests the spawning system by performing the following steps: Checks to see if the DISABLE_WP_CRON constant is set; errors if truebecause WP-Cron is disabled. Checks to see if the ALTERNATE_WP_CRON constant is set; warns if true.

Copy Anything to Clipboard – v1.8.0

Simply copy the content into the clipboard. Table of Content Introduction I write articles if my free times to share all the possible things I learn from my experience. While writing articles on my blog I share some code snippets. I notice that when someone follow the steps from the article then they copy the

@wordpress/api-fetch

How to install package @wordpress/api-fetch? npm install @wordpress/api-fetch –save How to use package @wordpress/api-fetch? Examples Example of GET request in @wordpress/api-fetch Example of POST request in @wordpress/api-fetch

Advertisement

Most used Components and Functions in Gutenberg

Below is the list of all internal most used functions and components from packages. Internal WordPress Packages @wordpress/api-fetch apiFetch @wordpress/autop removep autop @wordpress/blob createBlobURL getBlobByURL isBlobURL revokeBlobURL @wordpress/block-editor __experimentalBlockNavigationTree BlockCaption BlockControls BlockIcon BlockPreview Caption getColorClassName InnerBlocks InspectorControls MediaPlaceholder MediaUploadProgress PanelColorSettings PlainText RichText Warning withColors @wordpress/block-library __experimentalRegisterExperimentalCoreBlocks coreBlocks registerCoreBlocks @wordpress/blocks createBlock getBlockAttributes getBlockType getDefaultBlockName normalizeIconObject parse

Image SEO

The plugin “Image SEO” simply highlights the missing or empty alt and caption from the post images. Additionally, it also checks the missing SEO focus keywords from the image alt tag. Now, The support is added for the Gutenberg editor from Image SEO sidebar. You are going to see: Introduction While writing an article I

@wordpress/icons

The package @wordpress/icons provides a list of icons library. How to install @wordpress/icons? To install the @wordpress/icons use below command: npm install @wordpress/icons –save After executing the above command you can see the output something similar as below screenshot: How to use @wordpress/icons? import { Icon, check } from ‘@wordpress/icons’;   <Icon icon={ check }