"1", "wpar_chk_rating_mini_post_display" => "1", "wpar_chk_rating_after_post_display" => "1", "wpar_box_width" => "300", "wpar_drp_box_align" => "right", "wpar_drp_button_color" => "orange", "wpar_chk_default_options_db" => "" ); update_option('wpar_options', $arr); } } // ------------------------------------------------------------------------------ // CALLBACK FUNCTION FOR: add_action('admin_init', 'wpar_init' ) // ------------------------------------------------------------------------------ // THIS FUNCTION RUNS WHEN THE 'admin_init' HOOK FIRES, AND REGISTERS YOUR PLUGIN // SETTING WITH THE WORDPRESS SETTINGS API. YOU WON'T BE ABLE TO USE THE SETTINGS // API UNTIL YOU DO. // ------------------------------------------------------------------------------ // Init plugin options to white list our options function wpar_init(){ register_setting( 'wpar_plugin_options', 'wpar_options', 'wpar_validate_options' ); } // ------------------------------------------------------------------------------ // CALLBACK FUNCTION FOR: add_action('admin_menu', 'wpar_add_options_page'); // ------------------------------------------------------------------------------ // THIS FUNCTION RUNS WHEN THE 'admin_menu' HOOK FIRES, AND ADDS A NEW OPTIONS // PAGE FOR YOUR PLUGIN TO THE SETTINGS MENU. // ------------------------------------------------------------------------------ // Add menu page function wpar_add_options_page() { add_options_page('Reviews Settings', 'Reviews', 'manage_options', __FILE__, 'wpar_render_form'); } // ------------------------------------------------------------------------------ // CALLBACK FUNCTION SPECIFIED IN: add_options_page() // ------------------------------------------------------------------------------ // THIS FUNCTION IS SPECIFIED IN add_options_page() AS THE CALLBACK FUNCTION THAT // ACTUALLY RENDER THE PLUGIN OPTIONS FORM AS A SUB-MENU UNDER THE EXISTING // SETTINGS ADMIN MENU. // ------------------------------------------------------------------------------ // Render the Plugin options form function wpar_render_form() { ?>

Author hReview Settings

Get more control over reviews.

Display settings


Review box width (default: 300px)
Review box alignment (default: right) Select alignment type.
Button color Select button color.


*/ ?>

Awesome!


'.__('Settings').''; // make the 'Settings' link appear first array_unshift( $links, $posk_links ); } return $links; } // FB RSS function wpar_fb_list_rss() { include_once(ABSPATH.WPINC.'/rss.php'); // path to include script $feed = fetch_rss('http://feeds.feedburner.com/FamousBloggers'); // specify feed url $items = array_slice($feed->items, 0, 5); // specify first and last item if (!empty($items)) : ?>