Glad you asked! I keep wanting to add that to the plugin, but was too lazy to add it without it being requested. This will be in the next version of the plugin.
If you want it now (because I’m not sure when the next version will be out), you’ll need to modify the plugin code. Please do so only if you feel comfortable with modifying code. If anything goes wrong with your site, you can delete the plugin and start over. Make sure you have some kind of FTP access so you can delete the plugin when your site is down.
In version 1.3, in the clear-cache-for-widgets.php file, on line 345, look for
if ( isset( $_POST['ccfm'] ) ) {
Replace it with
if ( isset( $_REQUEST['ccfm'] ) ) {
Then add the following in the same file at the bottom on a new line:
/**
* add a link to the WP Toolbar
*/
function ccfm_toolbar_link( $wp_admin_bar ) {
$url = add_query_arg( '_wpnonce', wp_create_nonce( 'ccfm' ), admin_url() . '?ccfm=1' );
$args = array(
'id' => 'ccfm-link',
'title' => 'Clear Cache For Me',
'href' => $url,
'meta' => array(
'title' => 'Clear Cache For Me'
)
);
$wp_admin_bar->add_node( $args );
}
add_action( 'admin_bar_menu', 'ccfm_toolbar_link', 999 );
Again, modify the code at your own risk. Make sure you have a way to delete the files if you can’t access your WordPress dashboard.