fbpx

WordPress Plugin Development for Beginners

First, it’s important to understand how WordPress plugins fit into the WordPress Content Management System. Plugins provide nearly infinite extensibility and allow you to add countless features to your WordPress website. Would you like to learn more about WordPress Plugin Development and save some time? You can go through our WordPress Plugin Development video course…

Create WordPress Shortcode

Now that you’ve created your plugin, let’s delve into the definition of a shortcode. A shortcode is an element that you add to a page or post that gets turned into something else by the plugin or theme that registered the shortcode. Here is an example shortcode: If you install and activate WPMerchant and you add this shortcode…

Create Custom Post Type for WordPress Plugin

What is a Custom Post Type? I like to think of a custom post type as an object specifically as a different version of the WordPress Post object. You get all of the benefits of the post object but can name the object something else to suit your particular purposes.  We created a custom post…

Add Meta Box WordPress Custom Post Type

What is a Custom Post Type? It is basically a modified object under the parent Post object. Within each Custom Post Type, you get access to all of the features you get in the traditional Post object but it allows you to rename the post and create a myriad of ways of organizing your WordPress…

Add Meta Box WordPress Media Library

Media refers to a media item in the Media Library. So, when you click on Media in the left sidebar, you will see the WordPress Media Library, i.e. all of the media items uploaded via the Media Library to your site. A meta box in WordPress’ media library is often what appears under an image…

Add WordPress Admin Post Action

Creating a WordPress Admin Post action allows you to create a custom form and create a custom function that form data is sent to when the form is submitted. In other words, if you want to create a custom form and then submit that form to a function that you create, this is the post…

Pass PHP values to a JavaScript file in WordPress

In order to pass PHP values to a JavaScript file in WordPress you have to make use of the wp_localize_script function. Before you can use the wp_localize_script function to access your localized JavaScript variables, you need to first register the script and then enqueue the script in a PHP file. We’re using the WordPress Plugin…

Create WordPress Plugin Settings Page

We have compiled a series of steps involved in creating a professional WordPress plugin settings page. The settings page allows admin users to add their settings for a plugin. This article shows you how to do the following: Add your admin menu to the left sidebar in the admin dashboard along with a submenu item…

Adding Custom Columns to Custom Post Types

Adding custom columns to custom post types for your WordPress plugin is a simple 4 step process. For those of you who may not know what custom columns are for custom post types, the picture below shows custom columns for a custom post type listing called Products in WordPress. As you can see, there is…

Add Custom Database Table to a WordPress Plugin

Adding a custom database table to a WordPress plugin is a simple 2 step process. If you are using the WordPress Plugin Boilerplate, adding a custom database table involves adding the following code to the activate function within the class-plugin-name-activator.php. This code includes utilizing the wpdb global variable and the dbDelta function that allows a…