Skip to content

Instantly share code, notes, and snippets.

View codeboxr's full-sized avatar
🎯
Focusing

Codeboxr codeboxr

🎯
Focusing
View GitHub Profile
@codeboxr
codeboxr / gist:11138240
Last active August 29, 2015 14:00
showing avg rating using direct function call
/**
* Show avg rating for multiple posts for same form id,
* calls from shortcode or direct function call or from widget
*
* @param $option
* @param int $show_title
* @param int $show_form_id
* @param int $show_text
* @param int $show_star
* @param int $show_single
function codex_custom_init() {
$labels = array(
'name' => 'Books',
'singular_name' => 'Book',
'add_new' => 'Add New',
'add_new_item' => 'Add New Book',
'edit_item' => 'Edit Book',
'new_item' => 'New Book',
'all_items' => 'All Books',
'view_item' => 'View Book',