Star Rating
Star Rating for Lodging Businesses
if ( ! function_exists( 'custom_star_rating' ) ) { // Register Custom Taxonomy function custom_star_rating() { $labels = array( 'name' => _x( 'Star Ratings', 'Taxonomy General Name', 'mnxonline' ), 'singular_name' => _x( 'Star Rating', 'Taxonomy Singular Name', 'mnxonline' ), 'menu_name' => __( 'Star Rating', 'mnxonline' ), 'all_items' => __( 'All Star Ratings', 'mnxonline' ), 'parent_item' => __( 'Parent Star Rating', 'mnxonline' ), 'parent_item_colon' => __( 'Parent Star Rating:', 'mnxonline' ), 'new_item_name' => __( 'New Star Rating Name', 'mnxonline' ), 'add_new_item' => __( 'Add New Star Rating', 'mnxonline' ), 'edit_item' => __( 'Edit Star Rating', 'mnxonline' ), 'update_item' => __( 'Update Star Rating', 'mnxonline' ), 'view_item' => __( 'View Star Rating', 'mnxonline' ), 'separate_items_with_commas' => __( 'Separate Star Ratings with commas', 'mnxonline' ), 'add_or_remove_items' => __( 'Add or remove Star Ratings', 'mnxonline' ), 'choose_from_most_used' => __( 'Choose from the most used', 'mnxonline' ), 'popular_items' => __( 'Popular Star Ratings', 'mnxonline' ), 'search_items' => __( 'Search Star Ratings', 'mnxonline' ), 'not_found' => __( 'Not Found', 'mnxonline' ), 'no_terms' => __( 'No Star Rating', 'mnxonline' ), 'items_list' => __( 'Star Ratings list', 'mnxonline' ), 'items_list_navigation' => __( 'Star Ratings list navigation', 'mnxonline' ), ); $args = array( 'labels' => $labels, 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, ); register_taxonomy( 'star_rating', array( 'localbusiness' ), $args ); } add_action( 'init', 'custom_star_rating', 0 ); }