Saturday , 17 March 2018
Shortcode Attributes

Shortcode Attributes – WordPress Plugin Tutorial

Let’s take it up a step and make our shortcode more flexible. What if we want the user to define their own link? Well, it’s possible if we create shortcode attributes. Let’s learn how to do so. We’ll be using the same plugin we made in the previous tutorial. We’ll just be adding onto it. Update the post you created …

Read More »
Creating WordPress Shortcodes

Creating WordPress Shortcodes – WordPress Plugin Tutorial

Shortcodes are very popular in WordPress plugins. Today, we’ll be creating WordPress shortcodes. It’s relatively simple. Create a new plugin called wpshortcodeex and update the index.php to look like this. [crayon-5aad2a8a4a313818218563/] You’ll notice I renamed the function for checking the WordPress version. Reason is we don’t want this plugin to collide with any other functions. So, we give it a …

Read More »
WordPress Coding Standard

WordPress Coding Standard – WordPress Plugin Tutorial

This is something that should’ve been covered in the 2nd tutorial. We’ll be discussing what the WordPress coding standard is. I’m actually not going to write everything down, because everything is already written and explained on WordPress’s Codex. All information is clear and easy to understand. If you don’t feel like reading, watch the video to get a good understand …

Read More »
Deactivating a Plugin

Deactivating A Plugin – WordPress Plugin Tutorial

We’ve been learning a lot so far, but our plugins would be useless if the user didn’t have the correct WordPress version. In this lesson, we’re gonna take a look at how to grab the user’s current WordPress version and how we should go about deactivating a plugin. This function is actually so useful, we’re not going to create a …

Read More »
WordPress URL Functions

WordPress URL Functions – WordPress Plugin Tutorial

We just recently learned about the plugins_url() function and how handy it can be when we need to grab files from our own plugin. There are other WordPress URL functions which will be quite handy. Let’s create a new plugin.  Every time we create a new plugin, it’ll be based off the template plugin. So, I won’t be saying to copy …

Read More »
WordPress Plugin Path

WordPress Plugin Path – WordPress Plugin Tutorial

There will be times when you’ll want to grab the path to your plugin to grab an image or any file related to your plugin that you want loaded on the page. So, we’ll be learning a simple function that’ll help us do so. To grab a WordPress plugin path we use the plugins_url() function. Setting Up Alright, same as …

Read More »
Filter vs Action Hooks

Filter vs Action Hooks – WordPress Plugin Tutorial

So far, we’ve learned how to use an action hook and a filter hook.  Now, some of you might be thinking, what’s the difference? Filter vs action hooks is a common debate between developers and themselves. Action Hooks Action hooks can also take in data just like a filter hook. Action hooks are aimed at running behind the scenes. For …

Read More »
WordPress Filter Hooks

WordPress Filter Hooks – WordPress Plugin Tutorial

In our last lesson, we talked about action hooks. Now, we’re going to talk about how WordPress filter hooks work. Filter hooks, are the same as action hooks, except you’re passed a value and you must return a value. WordPress Filter Hooks You may want to modify certain content like the content, headers, titles, comments, etc.  WordPress filter hooks are …

Read More »
WordPress Action Hooks

WordPress Action Hooks – WordPress Plugin Tutorial

Let’s create our first real plugin. We’ll be talking about WordPress action hooks and what hooks are. WordPress Hooking System WordPress has a very special hooking system that is the basis for creating plugins.  There are two types of hooks, actions and filters. We’ll only be discussing WordPress action hooks for this lesson. An event is when something happens. This …

Read More »
WordPress Plugin Structure

WordPress Plugin Structure – WordPress Plugin Tutorial

Let’s take a look at WordPress plugin structure. Let me make this clear, this is by no means the official way to structure your plugin. In fact, if you took a look at how other plugins are structured, then you’ll find it’s organized a completely different way than what I’m showing. Some plugin developers are lazy and put all their …

Read More »
WordPress Plugin Header

WordPress Plugin Header – WordPress Plugin Tutorial

We’ll waste no time and jump in right away. We’ll be discussing what a wordpress plugin header is and how to implement one. We’ll also learn some simple WordPress guidelines you should follow. Creating A WordPress Plugin WordPress stores all of it’s plugins inside of Inside this folder, you’ll find some plugins already installed by default. You’re allowed to store …

Read More »
WordPress Plugin Tutorial

How to create a WordPress Plugin – WordPress Plugin Tutorial

Welcome! This WordPress plugin tutorial  is the first part on how to create a WordPress plugin. This series is dedicated to showing you everything you’ll need to know for creating WordPress plugins. WordPress is a very powerful tool. There are hundreds of thousands of sites worldwide that use WordPress daily. What makes it so popular is that you can extend …

Read More »
Want to learn how to create web applications with Node.js and SQL? Check out my course!
Get 93% off my course. You'll also learn how to build real world applications using Node and SQL. This is a limited time offer
Yes, I would like to get 93% off your course!
No Thanks!