Merge Settings Into an Array in WordPress
I found people are coming to this site (to an unrelated article) looking for a way to merge settings into an array. You’re looking for wp_parse_args() The main function for WordPress to do this is...
View ArticleEnable Shortcodes for Gravity Forms Field Descriptions
To enable shortcodes inside your Gravity Forms form description, field labels and descriptions, you need to add the following code to your theme’s functions.php file: add_filter('gform_pre_render',...
View ArticleHow to Hard-Code a UA String for the Google Analytics for WordPress Plugin
If you want to define a Google Analytics “UA String” while using Yoast Google Analytics plugin for WordPress. Add the following to your theme’s functions.php file: add_filter(...
View ArticleGenerate a Link to Activate a Plugin in WordPress
Here’s another specialized plugin development tip! If you want to create a link to activate a plugin, you need to know the path of the plugin file. Let’s use Akismet for this example. $path =...
View ArticleCreate a Custom Error Page for “Error establishing a database connection”
Here’s how to make a custom database error page for WordPress. If your site’s all set up and you see “Error establishing a database connection,” that’s an immediate “oh crap” situation. Hostgator.com,...
View ArticleMajor Changes in the WordPress.org Plugin Directory
The new plugin Reviews feature suggests a shifting approach to the WordPress ecosystem. Reviews: a new tab in town On every plugin page, there is now a Reviews tab. This is in addition to the Support...
View ArticleHow to Hide or Replace the WordPress Welcome Panel
Updated: now with more in-depth code! So you want to modify the WordPress Dashboard Welcome Screen There was a thread on the WPMU website that discusses how to disable the WordPress welcome screen, but...
View ArticleAdd “Preview” Link to Manage Themes
Ever since WordPress added a Live Preview option to the Manage Themes screen, it’s been frustrating to test a plugin using multiple themes. Why Live Preview sucks for developers When using Live...
View ArticleBradycardia & Cardiac Arrest for WordPress 3.6
Bradycardia is the resting heart rate of under 60 beats per minute…. Wikipedia A new feature in WordPress 3.6 is an upgrade to the autosave functionality that’s been around for years. It’s called...
View ArticleToggle WordPress Help Menu
It’s not possible (as far as I know) to currently link directly to a help tab in WordPress. Here’s the jQuery solution I cooked up: /** * Toggle the WP help menu tab by linking to the tab id * * The...
View ArticleTest Payments for Admins in Easy Digital Downloads
I’m in the process of setting up a store using the Easy Digital Downloads plugin. It’s been a good process so far and I’ll have more posts about it. While I was setting up the checkout process for...
View ArticleTesting Translation Function Speeds in WordPress
After reading Pippin Williamson’s post about gettext speed issues, I wanted to learn more. My IDX+ plugin has 815 translatable strings, and I was worried that it was having a performance impact on the...
View ArticleI’ll be at WordCamp Phoenix 2014
That’s me. I’m going to be attending WordCamp Phoenix 2014 from the 17-19th. If you see me there, say hi! I’m looking forward to meeting some plugin developers and other people I recognize from the...
View ArticleHow to Add Support for Display Advertising Code in Google Analytics for...
It’s really simple to use Google’s Display Advertising code, so I thought I’d share how. To enable the new GA features: Check the “Show Advanced Settings” Under “Advanced Settings,” check the checkbox...
View ArticleHow to get all downloads in Easy Digital Downloads
Easy Digital Downloads defaults to using 10 results per page when using the get_products() method. You can modify this default using the edd_api_results_per_page filter. Here’s how to fetch all...
View ArticleHelp test the Constant Contact API 3.0 plugin beta!
Almost ready. It’s been a long haul for the new version of the Constant Contact for WordPress plugin. I started working on it before Constant Contact finalized their new API, so let’s just say it has...
View ArticleHow to use your own widget icon in the WordPress Widget customizer
In developing deeper integration with the Customizer functionality of WordPress, I wanted to use a custom icon for my IDX+ plugin’s widgets. By default, WordPress defines a list of icons using their...
View Article