Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tollmanz
Created May 28, 2012 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tollmanz/2821654 to your computer and use it in GitHub Desktop.
Save tollmanz/2821654 to your computer and use it in GitHub Desktop.
Adding a Refresh Cache Menu Item
<?php
function ohsc_add_get_ratings_refresh() {
$button = array(
'id' => 'ohsc-add-get-ratings-refresh',
'title' => 'Movie Ratings',
'function' => 'ohsc_get_ratings',
'args' => array( true ),
);
afc_add_item( $button );
}
add_action( 'init', 'ohsc_add_get_ratings_refresh' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment