Garden Circle – Customer Reviews
Manually curate the best Google Reviews
if ( ! function_exists('customer_reviews') ) { // Register Custom Post Type function customer_reviews() { $labels = array( 'name' => _x( 'Customer Reviews', 'Post Type General Name', 'gcpm' ), 'singular_name' => _x( 'Customer Review', 'Post Type Singular Name', 'gcpm' ), 'menu_name' => __( 'Customer Reviews', 'gcpm' ), 'name_admin_bar' => __( 'Customer Review', 'gcpm' ), 'archives' => __( 'Review Archives', 'gcpm' ), 'attributes' => __( 'Review Attributes', 'gcpm' ), 'parent_item_colon' => __( 'Parent Review:', 'gcpm' ), 'all_items' => __( 'All Reviews', 'gcpm' ), 'add_new_item' => __( 'Add New Review', 'gcpm' ), 'add_new' => __( 'Add New', 'gcpm' ), 'new_item' => __( 'New Review', 'gcpm' ), 'edit_item' => __( 'Edit Review', 'gcpm' ), 'update_item' => __( 'Update Review', 'gcpm' ), 'view_item' => __( 'View Review', 'gcpm' ), 'view_items' => __( 'View Reviews', 'gcpm' ), 'search_items' => __( 'Search Review', 'gcpm' ), 'not_found' => __( 'Not found', 'gcpm' ), 'not_found_in_trash' => __( 'Not found in Trash', 'gcpm' ), 'featured_image' => __( 'Featured Image', 'gcpm' ), 'set_featured_image' => __( 'Set featured image', 'gcpm' ), 'remove_featured_image' => __( 'Remove featured image', 'gcpm' ), 'use_featured_image' => __( 'Use as featured image', 'gcpm' ), 'insert_into_item' => __( 'Insert into review', 'gcpm' ), 'uploaded_to_this_item' => __( 'Uploaded to this review', 'gcpm' ), 'items_list' => __( 'Reviews list', 'gcpm' ), 'items_list_navigation' => __( 'Reviews list navigation', 'gcpm' ), 'filter_items_list' => __( 'Filter reviews list', 'gcpm' ), ); $args = array( 'label' => __( 'Customer Review', 'gcpm' ), 'description' => __( 'Manually gather Google Reviews to display on Homepage', 'gcpm' ), 'labels' => $labels, 'supports' => array( 'title', 'editor' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-awards', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => false, 'exclude_from_search' => true, 'publicly_queryable' => true, 'rewrite' => false, 'capability_type' => 'post', 'show_in_rest' => true, ); register_post_type( 'customer_reviews', $args ); } add_action( 'init', 'customer_reviews', 0 ); }