Friday , 17 November 2017
Home / Tag Archives: php (page 4)

Tag Archives: php

WordPress Metadata – WordPress Plugin Tutorial

WordPress Metadata

Let’s finish up our plugin by extending it with metadata. So far, we’re able specify a post type and add taxonomy to it, but what about adding some custom fields? This can easily be accomplished with metadata. It’s very simple to work with WordPress metadata. We’ll be creating meta boxes again, so if you forgot how to create meta boxes, …

Read More »

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 Custom Post Types – WordPress Plugin Tutorial

WordPress Custom Post Types

One of the amazing features that comes with WordPress is the ability to create WordPress custom post types. What are  WordPress custom post types? A post type is a type of content. For example, a post is a post type. More information about post types can be found here. There will be times where you may want a custom post …

Read More »

WordPress Cron Jobs – WordPress Plugin Tutorial

WordPress Cron Jobs

There will be times where you’ll want to continually perform certain tasks automatically. This can be anything from checking up on the server or sending out e-mails. Having these tasks run behind the scenes without anyone doing anything is known as cron jobs. Usually cron jobs are set up by the user on their web server, but now WordPress actually …

Read More »

WordPress Transients API – WordPress Plugin Tutorial

WordPress Transients API

Today, we’ll be discussing how to use the WordPress transients API. Most bloggers don’t use WordPress out of the box. They’re usually using plugins ranging from completely custom to ones they found in the WordPress plugin directory. If you’re a blogger, you’re usually adding fresh new content daily. With that being said, you as the developer, must find a way to …

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 Settings API Part 3 – WordPress Plugin Tutorial

WordPress Settings API

In our last tutorial, we created a functional WordPress plugin using the WordPress settings API. A cool feature that WordPress allows us to do is do some validating of our own. You may have an input field where you’ll only accept non numeric characters. You may want to strip out a certain word. WordPress does some validating, but you may …

Read More »

WordPress Settings API Part 2 – WordPress Plugin Tutorial

WordPress Settings API

In our previous tutorial, I explained what the settings API is and how useful it is. I also  gave some code to help us get started. In this part, we’ll be discussing how to use the WordPress Settings API with the same plugin we crated in our last tutorial. We’ll mainly be working in our display-admin.inc.php file for this tutorial. …

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 »
ULTIMATE WORDPRESS DEVELOPMENT COURSE
Want to learn how to create your own custom WordPress plugins and themes? Check out my course!
Get 93% off my course. You'll also learn how to integrate WooCommerce and BuddyPress into your projects. This is a limited time offer
Yes, I would like to get 93% off your course!
No Thanks!
close-link