Disable Autosave in WordPress when adding and editing posts – the right way
So, I have been following everyone's recommendations when trying to disable the autosave feature in WordPress and yet it would still load the functionality when adding or editing posts. So, I took the time and figured out why the fixes didn't work, and now, here is the way to truly disable the autosave functionality in WordPress. As always, this works for me, if it does not work for you, please don't email me, yell at me, call me names, or whatever else. And, this may or may not be the best way to do it, but like I said, it works for me.
It is pretty easy to disable the autosave. If you have a plugin you are writing, you can include it in the plugin, or if not, you can add it to your themes functions.php file.
function myDisableAutosave() {
wp_deregister_script('autosave');
}
add_action('admin_footer','myDisableAutosave');
How to Use New WordPress 3.0 Features That Will Save You Tons of Time
Well there is a ton of buzz about WordPress 3.0, but I realized that not to much documentation is out yet about how to use the fun and easy stuff, so here goes. But first, some disclaimers so I don't get yelled at by.
- Even though the attached file is in WordPress plugin format, I did not release this as a plugin.
- I did not include stuff like validation, sanitation, etc. on user input fields, only because I wanted to show the new features and save on the time to write this. Always validate and sanitize your inputs.
- As with everything, there is usually more than 1 way to go about it. The methods I list below WORK FOR ME in a custom blog I am about to launch and follow the WordPress functions documentation. Don't flame me if you don't like the way I did it, please stay constructive.
- I did not include code comment on the source code, since, I more than did the job here in this article.
- I did not add any localization.
- I apologize in advance if the source highlighter looks funky, please download the zip file for a nicely formatted PHP code file
Now my blog flies, quick and easy site speed up
I have been going back and forth using all the tools out there, YSlow, Page Speed, CSS Usage, SEO this, SEO that, blah, blah, blah, and every time I tried to use this tool or that tool, or this plugin to WordPress or that plugin, something would break, and I never got it to go faster. Well, I ran across the WEBO Site SpeedUp plugin for WordPress, and in like 5 minutes, I installed the plugin, clicked a few buttons, and now, my YSlow grade went from a D to a B, load time tests are showing 2.75+ times faster loading. Amazing!! This thing is awesome. Check it out.
WP-ZFF Zend Framework Full
I needed to include Zend Framework in a special WordPress plugin I made for someone, so I figured I would make a plugin to include Zend Framework Zend and ZendX libraries for WordPress Plugins. Once I get the WordPress guys to approve the plugin and I will update this post with the download links, support links, etc.
Here's an example of how to use it, once it is installed and activated.
function plugin_function() {
$channel = new Zend_Feed_Rss('http://rss.example.com/channelName');
echo $channel->title();
echo $channel->category['domain'];
foreach ($channel as $item) {
echo $item->title() . "\n";
}
}
That's all you have to do instantiate the class.
Updates
- Apr 28, 2010
- Zend Framework releases V. 1.10-4,
- Updated the way the autoloader loads to make it more compatible
- See changelog
WordPress Update Unique Keys
I made a plugin called Update Unique Keys for WordPress.
In an effort to help make WordPress installations more secure, this plugin will use the WordPress hosted Unique Key generator to update the wp-config.php file with the following keys/salts:
* AUTH_KEY
* SECURE_AUTH_KEY
* LOGGED_IN_KEY
* NONCE_KEY
* AUTH_SALT
* SECURE_AUTH_SALT
* LOGGED_IN_SALT
* NONCE_SALT
If the wp-config.php file is not writable, then the plugin will show the key / salt values on the plugin options page so the admin can then manually update the wp-config.php file.
I will update this post with any updates.
Changelog
Version 1.0 - First Release
Installation
Note: As is the case when installing any new plugin, it's always a good idea to backup your blog data before installing.
- After downloading the Update Unique Keys plugin, unpack and upload the file to the wp-content/plugins folder on your blog. Make sure to leave the directory structure of the archive intact so that all of the Update Unique Keys files are located in 'wp-content/plugins/updateuniquekeys/'
- You will need to activate the Update Unique Keys plugin in order to update your wp-config.php file. Go to the Plugins tab and find Update Unique Keys in the list and click Activate.
- After activating proceed to the plugin settings page (under Settings > Update Unique Keys) to update your keys and wp-config.php file.
Download

GooglePlus
Twitter
RSS
LinkedIn
Picasa