Tuesday , 16 July 2019
Home / Tag Archives: programming tutorial

Tag Archives: programming tutorial

WordPress Taxonomies – WordPress Plugin Tutorial

WordPress Taxonomies

Organization is important in WordPress. WordPress taxonomies allow us to organize our content. For example, our recipe plugin allows us to create recipes, but no way to search for certain recipes by origin. With WordPress taxonomies, we can easily do this.  The process is very similar to creating WordPress custom post types. If you would like more information about WordPress …

Read More »

WordPress Meta Boxes – WordPress Plugin Tutorial

WordPress Meta Boxes

WordPress meta boxes are used to display certain information or options in a page. It’s when you have something to display and  don’t want it to  have a page of its own, but would like it to be a part of a page. An example of a  meta boxes is  the ones you see on the WordPress admin dashboard. Let’s …

Read More »

Widgets API – WordPress Plugin Tutorial

WordPress Widgets API

The widgets API is what we’ll be learning next. It’s very simple to use. It does involve having basic knowledge of PHP OOP. If you don’t know how to create classes, then I recommend you learn the fundamentals of OOP and then come back here. Getting Started Create a new plugin called wpWidgetEx. In our index.php file, lets use this …

Read More »

WordPress Admin Forms – WordPress Plugin Tutorial

WordPress Admin Forms

This will be our most complex plugin yet. We’ll be doing a couple of things we’ve done before and so some things will be skipped. In this tutorial, we’ll learn how to create WordPress admin forms. This will allow users to change the data for your options. Before, we’ve been updating the information in the code. This isn’t user friendly. …

Read More »

Uninstalling A Plugin – WordPress Plugin Tutorial

Uninstalling a Plugin

We’ve created a lot of plugins so far. Some are harmless and others take up space in our WordPress installation. Today, we’ll learn about uninstalling a plugin. We’ll be working with the same plugin we created in the last tutorial. By creating an option, we’ve also created a column in the database. If a user uninstalls your plugin, then that …

Read More »

WordPress Options API – Part 2 – WordPress Plugin Tutorial

WordPress Options API

This is part 2 of our WordPress Options API tutorial. We’ll be discussing how to make our plugin more efficient using arrays in a single option setting instead of creating multiple options for 1 plugin. We’ll be using the same code we used in our last tutorial. Let’s update our file to this. [crayon-5d2e5123b2beb483428276/]  WordPress Options API A couple of …

Read More »

WordPress Options API – Part 1 – WordPress Plugin Tutorial

WordPress Options API

We learned how to create menus. Now, we’ll learn how to use the WordPress options API to allow us to store user settings for our plugin. The options API is a great way to store settings for your plugin. Your users won’t have to define every single option every time they have to use your plugin. They could also customize …

Read More »

WordPress Admin Submenus – WordPress Plugin Tutorial

WordPress Admin Submenus

In our last lesson, we discussed how to create top-level menus. We’ll now learn how to create WordPress admin submenus. We’ll be working with the same plugin we created in our previous lesson. Let’s update our menus.inc.php file to this. [crayon-5d2e5123b3bcf640398307/] WordPress Admin Submenus As you can see we used the add_submenu_page() function to add a submenu. It takes in …

Read More »

WordPress Admin Menus – WordPress Plugin Tutorial

WordPress Admin Menus

So far, our plugins have been very simple. To extend the functionality of our WordPress plugins, it’s best to have a set of options for a user to configure in their admin panel. Before we can get there, we first need to add a way to get there. We can easily do this by creating WordPress admin menus for our …

Read More »

Enclosing Shortcodes – WordPress Plugin Tutorial

Enclosing Shortcodes

In our previous tutorial, we learned about attributes. Our last shortcode took in 2 attributes, which were the link and the text, but it isn’t exactly the best idea to use the text attribute because what if the user is submitted paragraphs of text? Or even worse, what if they’re using quotes their message? Our solution, enclosing shortcodes. WordPress allows …

Read More »