Learn Plugin Development
200 tutorials and 12 series, ready when you are.
Shortcodes 101 – Using Template Files for Better Shortcodes
Shortcodes 101 – Shortcode Attributes
In the Basics of the Shortcode API, we briefly covered shortcode attributes and the shortcode_atts() function. Now it is time to dive deep into setting up attributes for shortcodes and learn a few tricks can that be exceptionally helpful when building shortcodes in your plugins or when modifying the shortcodes of other plugins.
Shortcodes 101 – Good and Bad Use Cases for Shortcodes
Shortcodes 101 – The Basics of the Shortcode API
Shortcodes are one of the most ubiquitous features used throughout thousands upon thousands of plugins. If a plugin does anything more than very basic or specific tasks, it is likely that it uses one or more shortcodes as a means for the user to apply the functionality of the plugin to their site. Gallery plugins…
Unit Tests for WordPress Plugins – Writing Tests
Unit Tests for WordPress Plugins – Tests vs. Assertions
Unit Tests for WordPress Plugins – Setting Up Our Testing Suite
Unit Tests for WordPress Plugins – An Introduction
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…