PluginProbe ʕ •ᴥ•ʔ
Rich Showcase for Google Reviews / 2.0
Rich Showcase for Google Reviews v2.0
6.9.7 6.9.6 trunk 1.4 1.42 1.43 1.44 1.45 1.46 1.47 1.48 1.49 1.5 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.7 1.6.8 1.6.9 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9 1.8 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3 2.4 2.4.1 2.4.2 2.5 2.5.1 2.6 2.6.1 2.6.2 2.7 2.8 2.9 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.6.1 3.7 3.8 3.9 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.8.1 4.8.2 5.0 5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.7.1 5.8 5.9 5.9.1 5.9.2 5.9.3 5.9.7 6.0 6.1 6.2 6.3 6.4 6.4.1 6.5 6.6 6.6.1 6.6.2 6.7 6.8 6.8.1 6.8.2 6.9 6.9.1 6.9.2 6.9.3 6.9.4 6.9.4.1 6.9.4.2 6.9.4.3 6.9.4.4 6.9.5
widget-google-reviews / includes / class-post-types.php
widget-google-reviews / includes Last commit date
admin 4 years ago core 4 years ago class-activator.php 4 years ago class-assets.php 4 years ago class-builder-page.php 4 years ago class-deactivator.php 4 years ago class-debug-info.php 4 years ago class-feed-deserializer.php 4 years ago class-feed-old.php 4 years ago class-feed-page.php 4 years ago class-feed-serializer.php 4 years ago class-feed-shortcode.php 4 years ago class-feed-widget.php 4 years ago class-plugin-settings.php 4 years ago class-plugin-support.php 4 years ago class-plugin.php 4 years ago class-post-types.php 4 years ago class-settings-save.php 4 years ago class-view.php 4 years ago index.php 4 years ago page-setting-fig.php 4 years ago page-setting-support.php 4 years ago
class-post-types.php
71 lines
1 <?php
2
3 namespace WP_Rplg_Google_Reviews\Includes;
4
5 class Post_Types {
6
7 const FEED_POST_TYPE = 'grw_feed';
8
9 public function register() {
10 add_action('init', array($this, 'register_post_types'));
11 }
12
13 public function register_post_types() {
14 $this->register_feed_post_type();
15 }
16
17 public function register_feed_post_type() {
18 $labels = array(
19 'name' => _x('Reviews widgets', 'Post Type General Name', 'grw'),
20 'singular_name' => _x('Reviews widget', 'Post Type Singular Name', 'grw'),
21 'menu_name' => __('Reviews widgets', 'grw'),
22 'name_admin_bar' => __('Reviews widget', 'grw'),
23 'archives' => __('Reviews Feed Archives', 'grw'),
24 'attributes' => __('Reviews Feed Attributes', 'grw'),
25 'parent_item_colon' => __('Parent Reviews Feed:', 'grw'),
26 'all_items' => __('Widgets', 'grw'),
27 'add_new_item' => __('Add New Reviews Feed', 'grw'),
28 'add_new' => __('Add Reviews Feed', 'grw'),
29 'new_item' => __('New Reviews Feed', 'grw'),
30 'edit_item' => __('Edit Reviews Feed', 'grw'),
31 'update_item' => __('Update Reviews Feed', 'grw'),
32 'view_item' => __('View Reviews Feed', 'grw'),
33 'view_items' => __('View Reviews Feeds', 'grw'),
34 'search_items' => __('Search Reviews Widgets', 'grw'),
35 'not_found' => __('Not found', 'grw'),
36 'not_found_in_trash' => __('Not found in Trash', 'grw'),
37 'featured_image' => __('Featured Image', 'grw'),
38 'set_featured_image' => __('Set featured image', 'grw'),
39 'remove_featured_image' => __('Remove featured image', 'grw'),
40 'use_featured_image' => __('Use as featured image', 'grw'),
41 'insert_into_item' => __('Insert into item', 'grw'),
42 'uploaded_to_this_item' => __('Uploaded to this item', 'grw'),
43 'items_list' => __('Reviews Feeds list', 'grw'),
44 'items_list_navigation' => __('Reviews Feeds list navigation', 'grw'),
45 'filter_items_list' => __('Filter items list', 'grw'),
46 );
47
48 $args = array(
49 'label' => __('Reviews Feed', 'grw'),
50 'labels' => $labels,
51 'supports' => array('title'),
52 'taxonomies' => array(),
53 'hierarchical' => false,
54 'public' => false,
55 'show_in_rest' => false,
56 'show_ui' => true,
57 'show_in_menu' => 'grw',
58 'show_in_admin_bar' => false,
59 'show_in_nav_menus' => false,
60 'can_export' => true,
61 'has_archive' => false,
62 'exclude_from_search' => true,
63 'publicly_queryable' => false,
64 'capabilities' => array('create_posts' => 'do_not_allow'),
65 'map_meta_cap' => true,
66 );
67
68 register_post_type(self::FEED_POST_TYPE, $args);
69 }
70 }
71