Голосов: 0
#1
Learn WordPress Plugin Development
Хотите прокачать свои навыки и научиться создавать плагины для Wordpress, вместо того чтобы просто скачивать и устанавливать их? Этот курс вам поможет.
Этот курс научит вас основам создания плагинов и подскажет правильные инструменты для этого.
Язык английский
Видео 24 урока (на данный момент записано и доступно 18)
We'll cover the essential topics like:
...and some more advanced topics like:
- Installing a development environment on your own machine to work on your plugin
- What makes a plugin
- The basics of PHP (the language WordPress is built with)
- The building blocks of WordPress functionality (actions and filters)
- How to build a settings page for your plugin
- How to work with posts, pages and The Loop
- Fetching and saving data
- Adding and working with shortcodes
- Ways to protect your code from security threats
- Using your plugin to customize other plugins (so meta...)
- Tracking changes to your plugin code using Git version control
- Getting your plugin ready for translation into other languages
- How to save your data to a custom table (and why you'd want to)
- LESSON 1
Installing a Local Development Environment
How to install a local WordPress development environment using Local by Flywheel to create our own plugins.
- LESSON 2
Creating a New Plugin
Before we learn how to make more complex WordPress plugins, we'll create a basic one and activate it in the WordPress admin.
- LESSON 3
PHP for WordPress Introduction
Let's review PHP (the language we'll be using to code our plugins), with notes on using it with WordPress and supporting older hosting companies.
- LESSON 4
Actions and Filters
One of the core concepts that gives WordPress it's power and flexibility is actions and filters. Let's go through what they are, and how to use them to modify WordPress, other plugins and even your theme without "hacking" anything.
- LESSON 5
Adding a Shortcode
Shortcodes are a great way to let users add formatted content where they need it, without needing to know any HTML. Here we'll go through adding one for our plugin, along with providing shortcode options for the user to customize it.
- LESSON 6
Working with an Individual Post
A common thing we'd want to do is get information about the current Post or Page that we're on. WordPress gives us a bunch of different options to do this, let's go through them here.
- LESSON 7
The Loop
WordPress has this concept of The Loop (capital L), so what is The Loop? Let's look at how it works and how we can modify it for our needs.
- LESSON 8
Custom Post Types
By default you get a couple post types with WordPress, namely Posts (which you'd normally use for blog posts) and Pages (which you'd usually use for more static content like Contact and About Us). WordPress also supports the ability for us to add our own custom post types with our plugin, which let's us turn WordPress into a full featured content management system. Let's go through how to add and use one!
- LESSON 9
Working with Additional Post Data
So what if we want to include additional information in a post? Maybe we want site users to specify the location of a news article, and display it before our main content in a certain way. Let's do that by adding a custom meta box to our WordPress content editor with a field for the user to specify any additional information.
- LESSON 10
Organizing Our Plugin Code
Our plugin code is getting a bit much to have in one file. Let’s split it up into several different files and group some common code together.
- LESSON 11
Security
While the code in the last video worked to save the meta data for our post, we didn’t do any checks that the input is safe and that it’s actually a logged in user giving us the data. We’ll go through sanitizing the input, escaping the output, using a nonce to create a token, and verifying the user has permissions to edit the post itself.
- LESSON 12
Querying Posts
Learn how to fetch previously entered posts and loop through them. We’ll see how get_posts and WP_Query are different, and query for related content to display at the bottom of our news articles.
- LESSON 13
Creating a Plugin Settings Page
Maybe we want to let our plugin users pick how many related news articles to show, or whether to show them at all? What about calling them something other than related news? These are all things that would be great to have on a plugin settings page, so let’s set one up.
- LESSON 14
Adding CSS and JavaScript Files
WordPress gives us the ability to add or "enqueue" our scripts and stylesheets where we need them, and handle any conflicts or including requirements (like jQuery) for us. We'll briefly go through how to do this, but more detail is in my free-to-watch Working With JavaScript and WordPress Course.
- LESSON 15
Dealing with Errors
What if a user forgets to enter something in our settings form, or the data is wrong? Let's handle errors in the input and provide some useful feedback.
- LESSON 16
Inserting Content Using Code
Your plugin might want certain posts or pages to be available to our plugin. Rather then getting the user to create them, why don't we insert the necessary content when our plugin is activated?
- LESSON 17
Using WordPress Coding Standards
If you have previous experience in PHP you may have noticed some odd spacing in the code we've been writing so far. This is part of some of the WordPress coding standards and formatting guidelines, making your code easier for others to work with and contribute to.
- LESSON 18
Dealing With Older Versions of WordPress and PHP
If you're distributing your plugin to others, it might be activated on (much) older versions of PHP and WordPress. Our plugin should detect this and if using an older version than our plugin supports, we should fail gracefully instead of taking down a site.
- LESSON 19 · COMING SOON!
Preparing Your Plugin For Translation
You have a plugin, but you want users to be able to use it in their native language. Let's look at how to get it ready for translation, and things to watch out for as you change your plugin over time.
- LESSON 20 · COMING SOON!
Working With Custom Database Tables
WordPress stores the data about posts, pages, custom post types and more in database tables. But depending on what information you're storing and querying for, it may be a lot more efficient to store it in a new table you create. Let's learn how to do that.
- LESSON 21 · COMING SOON!
Improving Performance With Transients
If you have content that doesn't change very often, there's no reason to query the database each time. With WordPress transients you can save a copy of any results or output to load it quickly, and have it expire after a certain period of time.
- LESSON 22 · COMING SOON!
Fetching data from an external source or API
Your plugin might use other services or data from outside of the current site. WordPress provides some functions for getting that data, allowing you to fetch it on a variety of different WordPress hosting platforms.
- LESSON 23 · COMING SOON!
Adding a Plugin Introduction Screen
One way to help users get started with your plugin is to show a welcome or introduction screen. We can add one when our plugin is activated, the best time to help the user get started.
- LESSON 24 · COMING SOON!
Plugin Boilerplates and Frameworks
There are several frameworks or boilerplates to help you get started writing your plugin and organizing the code. We'll take a quick look at them and why you might want to look at using one for your plugin.
Цена 87 57$ за ранний доступ
Для просмотра содержимого вам необходимо зарегистрироваться!Для просмотра содержимого вам необходимо зарегистрироваться!
Последнее редактирование модератором:
- Статус
- В этой теме нельзя размещать новые ответы.