We often use keyboard shortcuts while development. These shortcuts improve our productivity and save time a lot. In this cheat sheet, We are going to see all the available keyboard shortcuts in Sublime Text 3. Basically we use shortcuts CTRL + C to copy the text and CTRL + V to paste them. But, In
In-depth of WordPress plugin init file
I’m tying to explain In-Depth about the WordPress plugin init file. You are going to see: Init File Structure Below is the structure of the example plugin’s init file. <?php /** * Plugin Name: ______________ * Plugin URI: ______________ * Description: ______________ * Author: ______________ * Author URI: ______________ * Version: ______________ * Text Domain:
How to fix error: To perform the requested action WordPress needs to access your web server
Overview WordPress will prompt you for FTP credentials If it does not have permission to write the files it needs to. Whenever this happens we can see the error: To perform the requested action, WordPress needs to access your web server. Please enter your FTP information to continue. If you do not remember your information,
FIXED: PHP Unit test issue PHP Warning/Fatal error: Failed to open stream: No such file (mock-mailer.php) for windows
After setup the PHP unit test on your Windows operating system maybe you get below error: In file C:\Users\MaheshW\AppData\Local\Temp\wordpress-tests-lib\wp-tests-config.php line 7 has code: Here, ABSPATH return the invalid path. You can simply change the above code with below: NOTE: Here change the {USERNAME} with your own user name. To know the user name just open
Advertisement
Capture Website Screenshot with CLI (Command Line Interface)
In this article we are going to see how to capture website screenshot with command line interface. We are going to see: Introduction Before writing about how to create a website screenshot of website with CLI command, I think, I need to share some background. Recently, I was working on some project in which I
Auto translate WordPress theme and plugin strings with WP CLI
With the help of WP CLI command we can translate the theme and plugin from the existing translated strings. You are going to see: How to use? Create fresh WordPress setup. Clone the plugin wp-i18n into your /wp-content/plugins/ directory. Import the database latest.sql with WP CLI commnd as below:wp db import latest.sql Now use below
Quick download WordPress versions from wp.org
Quick Links Below are the quick download links of the latest WordPress release. Or Download OLD plugin release for reference. NOTE: Always use latest WordPress plugin release. Use OLD versions only for development purpose. 5.2 Branch Download the WordPress 5.2 version 5.2.1 May 21, 2019 zip(md5 | sha1) tar.gz(md5 | sha1) IIS zip(md5 | sha1) 5.2 May 7, 2019 zip(md5 | sha1) tar.gz(md5 | sha1)
FIx: Another update is currently in progress
Some times while updating the WordPress core version or updating bulk plugins we’ll get a notice: The WordPress another update is currently in progress error describe itself. Table of Content This notice occurs because WordPress lock the update process if the update process triggers multiple times. The update class uses the method create_lock of the
Advertisement
List of all default Rest API endpoints in WordPress website
In WordPress there are lot of default rest API endpoints which may help you while development. How to access rest API endpoints? You can access rest API endpoints though URLs. E.g. http://wpdigits.com/wp-json/wp/v2/posts Above URL show the list of all posts in the form of JSON. In this example endpoint, Domain name is http://wpdigits.com/ and the
Git vs SVN commands
We use Git and SVN for managing projects. I personally work on Github, GitLab and BitBucket. I’m more familiar with Git commands. WordPress itself use the SVN for hosting plugins and themes. I have created a WordPress Theme and Plugins. But, I personally not use SVN though command line. I personally use Tortoise SVN for
Get latest stable Plugin or Theme download zip URL from wp.org
Plugin Download URL You can add a download button on your website with the link of latest plugin zip. So, Your users always get the latest zip of your plugin which is hosted on wp.org. Stable plugin download zip URL is: Note: You need to use the plugin slug for {plugin-slug}. How to find the
Multisite Support for Site Metadata in WordPress 5.1
Quick Highlights: WordPress multisite introduces a new database table wp_blogmeta to store metadata associated with sites. This allows for the storage of arbitrary site data relevant in a multisite/network context. It provides an alternative to using options and can be retrieved from multiple sites in a more performant way—without calling switch_to_blog(). Sites can now also be
Advertisement
PHP 5.6 is the intended version from WordPress 5.1
Quick Highlights: WordPress 5.1 will start showing notices to administrators of sites that run on long outdated PHP versions. (Below PHP 5.6 version). See bump of the minimum required PHP version. Provided filter wp_update_php_url for a more dynamic approach on the code level. Replacing the URL should happen in cases where a more specific guide to
Setup WP CLI (WordPress Command Line Interface) on Windows Operating System
Step 1 Create folder wp-cli in C drive. Step 2 Download wp-cli.phar from https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar Step 3 Move downloaded wp-cli.phar file in C:\wp-cli\ Step 4 Create wp.bat file in C:\wp-cli\ and write below code in it. Or Download file from below Gist Step 5 Open system environment and set C:\wp-cli as an environment path. Done! Open
WordPress 5.0.1 MIME validation for uploaded files fix for wp_handle_sideload()
Sorry, this file type is not permitted for security reasons due to WordPress 5.0.1 MIME validation for uploaded files fix for wp_handle_sideload()