Category Archives: WordPress
Toggle 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 * … Continue reading
Bradycardia & 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 “Heartbeat” and it makes sure you have … Continue reading
Add “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 Preview, you can’t modify the URL of the … Continue reading
How 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 the code provided didn’t work, so … Continue reading
Major 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 tab that WordPress added … Continue reading
Create 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, the company that hosts this website, has had … Continue reading
Generate 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 = ‘akismet/akismet.php’; $link = wp_nonce_url(admin_url(‘plugins.php?action=activate&plugin=’.$path), ‘activate-plugin_’.$path); … Continue reading
How 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( ‘option_Yoast_Google_Analytics’, ‘custom_ua_string_filter’); function custom_ua_string_filter($options = array()) API documentation generator for PHP 5.3+