Advertisement

In-depth of WordPress plugin init file

Init File Structure #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: ______________ * Domain Path: ______________ * Network: ______________ * Requires at least: ______________

How to fix error: To perform the requested action WordPress needs to access your web server

Overview #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

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

Auto translate WordPress theme and plugin strings with WP CLI

How to use? #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 commands to translate any plugin/theme from wp.org. To translate the plugin use 2 WP CLI commands: Here, download_plugin_po & generate_plugin_po are

Quick download WordPress versions from wp.org

Quick Links #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 #5.2 Branch Download the WordPress 5.2 version #Download the WordPress 5.2 version 5.2.1 May 21, 2019 zip(md5 | sha1)

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? #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,

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

Multisite Support for Site Metadata in WordPress 5.1

Quick Highlights: #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

Advertisement

PHP 5.6 is the intended version from WordPress 5.1

Quick Highlights: #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

Setup WP CLI (WordPress Command Line Interface) on Windows Operating System

Step 1 #Step 1 Create folder wp-cli in C drive. Step 2 #Step 2 Download wp-cli.phar from https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar Step 3 #Step 3 Move downloaded wp-cli.phar file in C:\wp-cli\ Step 4 #Step 4 Create wp.bat file in C:\wp-cli\ and write below code in it. Or Download file from below Gist Step 5 #Step 5 Open system