Determine if a script has been enqueued or registered

WordPress provides a nice, simple API for loading scripts in plugins and themes. We use the wp_enqueue_script() and wp_register_script() to instruct WordPress to load the scripts we need, and it works exceptionally well. Sometimes, however, we don’t need to just load a script, but instead we need to detect if a specific script has been…

Your First WordPress Plugin Course on WPSessions

I am thrilled to announce the launch of a new plugin development course for those wanting to begin their adventure into the world of WordPress plugin development. It is an introductory course that walks you through every step of writing a plugin from start to finish. The course focuses on writing a simple, yet very…

first_wp_plugin

Custom Capabilities in Restrict Content Pro

Restrict Content Pro, my plugin for selling access to premium content, extends the roles and capabilities API in WordPress, allowing you to fine tune the levels of access each user role has to the admin pages for Restrict Content Pro. This means that you can easily setup user roles that only have access to the Members area,…

Tips for getting your plugin approved on WordPress.org

There are a lot of plugins on WordPress.org (more than 30,000) and there are a huge number of new plugins submitted to the repository every single week. What you may not know is that there are only two people that review the vast majority of the plugin submissions each week: myself and Mika Ipstenu (she does far…

A look at the posts_where filter in WordPress

The WP_Query class in WordPress is extremely robust and allows you to construct just about any kind of query you need for retrieving data from the wp_posts table, but there are still scenarios you will encounter when building your plugins that WP_Query doesn’t support. Before WordPress 3.7, the posts_where filter was used primarily for setting up date-range queries and…

Error: Please enter a valid email address

Error: Invalid email