background preloader

Wordpress Development

Facebook Twitter

Snippets

The Guide To WordPress Hooks. Add Extra Media Type Filters to the WordPress Media Manager. By default the WordPress Media Manager allows you to filter media by three types only; Images, Video and Audio.

Add Extra Media Type Filters to the WordPress Media Manager

The site I am currently developing will use a lot of PDF attachments, so I wanted to add PDF filtering to the media manager. I found that extra file type filtering can be added to the media manager using a simple filter hook. Example; Adding PDFs To achieve this we are going to utilise the 'post_mime_types' filter. Within our function we will select the file type using the mime type slug, the slug for PDFs is 'application/pdf' Then we define an array that will contain the text labels for the file type. That's it! Other File Types You can do this with any files that WordPress supports.

The default supported file types are defined within the get_allowed_mime_types() function. To find the slug of the file type you're looking for just search for 'get_allowed_mime_types()' in wp-includes/functions.php Do you have any tips on file types in WordPress' media manager? Building your first WordPress plugin (part 1) One of the primary reasons for WordPress’ continued popularity is the ease with which it can be extended and customized with plugins.

Building your first WordPress plugin (part 1)

Building a plugin may seem like an impossible task, but it’s simpler than you may think. Today we begin our “Building your first WordPress plugin” series that will cover the most important principles and how-tos of the process. By the end of the series you’ll be fully prepared to make further experiments of your own, relying on best practices and conventions adopted by the extensive WordPress community. What is a WordPress plugin? It is a PHP script that modifies or extends the native functionality of WordPress. By providing a very simple but flexible Plugin API, WordPress supplies every developer with following advantages for plugin usage: No need to modify core files to have additional or alternative functionality. The primary task that we are going to explore today, is to build a solid plugin foundation. Plugin name and files Let’s start with an example.

Display a custom message on WordPress registration page. A Process For Professional WordPress Development. Advertisement Recently, we discussed “How Commercial Plugin Developers Are Using The WordPress Repository1.”

A Process For Professional WordPress Development

This article provided a solid explanation of the plugin repository, how to use it, how not to abuse it, and how to leverage it for success, even with premium plugins. Now is a great time to be working as a WordPress developer: the community is active and growing, the platform has a solid API and the platform is under constant development. Despite these advantages, many developers have a hard time getting started building premium products.

In this article, we’ll look at what’s required to develop professional WordPress products (either themes or plugins). Get An Idea Link For many, the biggest challenge is coming up with an idea for a premium product that will work. Regardless of how obvious an idea may seem or how easy it may be to implement, the idea is still valid. That being said, here are a couple of ways to seed an idea: Look for something you need. Bring It To Life Link (al)