|
16 | 16 | * @package AdvancedQueryLoop |
17 | 17 | */ |
18 | 18 |
|
| 19 | +// Prevent direct access. |
| 20 | +defined( 'ABSPATH' ) || exit; |
| 21 | + |
19 | 22 | /** |
20 | 23 | * Register the post type |
21 | 24 | */ |
22 | 25 | function register_stream_post_type() { |
23 | 26 | $labels = array( |
24 | | - 'name' => _x( 'Streams', 'Post type general name', 'twitch-theme' ), |
25 | | - 'singular_name' => _x( 'Stream', 'Post type singular name', 'twitch-theme' ), |
26 | | - 'menu_name' => _x( 'Streams', 'Admin Menu text', 'twitch-theme' ), |
27 | | - 'name_admin_bar' => _x( 'Stream', 'Add New on Toolbar', 'twitch-theme' ), |
28 | | - 'add_new' => __( 'Add New', 'twitch-theme' ), |
29 | | - 'add_new_item' => __( 'Add New Stream', 'twitch-theme' ), |
30 | | - 'new_item' => __( 'New Stream', 'twitch-theme' ), |
31 | | - 'edit_item' => __( 'Edit Stream', 'twitch-theme' ), |
32 | | - 'view_item' => __( 'View Stream', 'twitch-theme' ), |
33 | | - 'all_items' => __( 'All Stream', 'twitch-theme' ), |
34 | | - 'search_items' => __( 'Search Streams', 'twitch-theme' ), |
35 | | - 'parent_item_colon' => __( 'Parent Stream:', 'twitch-theme' ), |
36 | | - 'not_found' => __( 'No Streams found.', 'twitch-theme' ), |
37 | | - 'not_found_in_trash' => __( 'No Streams found in Trash.', 'twitch-theme' ), |
38 | | - 'featured_image' => _x( 'Stream Thumbnail', 'Overrides the “Featured Image” phrase for this post type. Added in 4.3', 'twitch-theme' ), |
39 | | - 'set_featured_image' => _x( 'Set stream thumbnail', 'Overrides the “Set featured image” phrase for this post type. Added in 4.3', 'twitch-theme' ), |
40 | | - 'remove_featured_image' => _x( 'Remove stream thumbnail', 'Overrides the “Remove featured image” phrase for this post type. Added in 4.3', 'twitch-theme' ), |
41 | | - 'use_featured_image' => _x( 'Use as stream thumbnail', 'Overrides the “Use as featured image” phrase for this post type. Added in 4.3', 'twitch-theme' ), |
42 | | - 'archives' => _x( 'Stream archives', 'The post type archive label used in nav menus. Default “Post Archives”. Added in 4.4', 'twitch-theme' ), |
43 | | - 'insert_into_item' => _x( 'Insert into Stream', 'Overrides the “Insert into post”/”Insert into page” phrase (used when inserting media into a post). Added in 4.4', 'twitch-theme' ), |
44 | | - 'uploaded_to_this_item' => _x( 'Uploaded to this Stream', 'Overrides the “Uploaded to this post”/”Uploaded to this page” phrase (used when viewing media attached to a post). Added in 4.4', 'twitch-theme' ), |
45 | | - 'filter_items_list' => _x( 'Filter Stream list', 'Screen reader text for the filter links heading on the post type listing screen. Default “Filter posts list”/”Filter pages list”. Added in 4.4', 'twitch-theme' ), |
46 | | - 'items_list_navigation' => _x( 'Streams list navigation', 'Screen reader text for the pagination heading on the post type listing screen. Default “Posts list navigation”/”Pages list navigation”. Added in 4.4', 'twitch-theme' ), |
47 | | - 'items_list' => _x( 'Streams list', 'Screen reader text for the items list heading on the post type listing screen. Default “Posts list”/”Pages list”. Added in 4.4', 'twitch-theme' ), |
| 27 | + 'name' => _x( 'Streams', 'Post type general name', 'advanced-query-loop' ), |
| 28 | + 'singular_name' => _x( 'Stream', 'Post type singular name', 'advanced-query-loop' ), |
| 29 | + 'menu_name' => _x( 'Streams', 'Admin Menu text', 'advanced-query-loop' ), |
| 30 | + 'name_admin_bar' => _x( 'Stream', 'Add New on Toolbar', 'advanced-query-loop' ), |
| 31 | + 'add_new' => __( 'Add New', 'advanced-query-loop' ), |
| 32 | + 'add_new_item' => __( 'Add New Stream', 'advanced-query-loop' ), |
| 33 | + 'new_item' => __( 'New Stream', 'advanced-query-loop' ), |
| 34 | + 'edit_item' => __( 'Edit Stream', 'advanced-query-loop' ), |
| 35 | + 'view_item' => __( 'View Stream', 'advanced-query-loop' ), |
| 36 | + 'all_items' => __( 'All Stream', 'advanced-query-loop' ), |
| 37 | + 'search_items' => __( 'Search Streams', 'advanced-query-loop' ), |
| 38 | + 'parent_item_colon' => __( 'Parent Stream:', 'advanced-query-loop' ), |
| 39 | + 'not_found' => __( 'No Streams found.', 'advanced-query-loop' ), |
| 40 | + 'not_found_in_trash' => __( 'No Streams found in Trash.', 'advanced-query-loop' ), |
| 41 | + 'featured_image' => _x( 'Stream Thumbnail', 'Overrides the “Featured Image” phrase for this post type. Added in 4.3', 'advanced-query-loop' ), |
| 42 | + 'set_featured_image' => _x( 'Set stream thumbnail', 'Overrides the “Set featured image” phrase for this post type. Added in 4.3', 'advanced-query-loop' ), |
| 43 | + 'remove_featured_image' => _x( 'Remove stream thumbnail', 'Overrides the “Remove featured image” phrase for this post type. Added in 4.3', 'advanced-query-loop' ), |
| 44 | + 'use_featured_image' => _x( 'Use as stream thumbnail', 'Overrides the “Use as featured image” phrase for this post type. Added in 4.3', 'advanced-query-loop' ), |
| 45 | + 'archives' => _x( 'Stream archives', 'The post type archive label used in nav menus. Default “Post Archives”. Added in 4.4', 'advanced-query-loop' ), |
| 46 | + 'insert_into_item' => _x( 'Insert into Stream', 'Overrides the “Insert into post”/”Insert into page” phrase (used when inserting media into a post). Added in 4.4', 'advanced-query-loop' ), |
| 47 | + 'uploaded_to_this_item' => _x( 'Uploaded to this Stream', 'Overrides the “Uploaded to this post”/”Uploaded to this page” phrase (used when viewing media attached to a post). Added in 4.4', 'advanced-query-loop' ), |
| 48 | + 'filter_items_list' => _x( 'Filter Stream list', 'Screen reader text for the filter links heading on the post type listing screen. Default “Filter posts list”/”Filter pages list”. Added in 4.4', 'advanced-query-loop' ), |
| 49 | + 'items_list_navigation' => _x( 'Streams list navigation', 'Screen reader text for the pagination heading on the post type listing screen. Default “Posts list navigation”/”Pages list navigation”. Added in 4.4', 'advanced-query-loop' ), |
| 50 | + 'items_list' => _x( 'Streams list', 'Screen reader text for the items list heading on the post type listing screen. Default “Posts list”/”Pages list”. Added in 4.4', 'advanced-query-loop' ), |
48 | 51 | ); |
49 | 52 |
|
50 | 53 | $args = array( |
@@ -90,17 +93,17 @@ function register_stream_post_type() { |
90 | 93 | ); |
91 | 94 |
|
92 | 95 | $labels = array( |
93 | | - 'name' => _x( 'Genres', 'taxonomy general name', 'textdomain' ), |
94 | | - 'singular_name' => _x( 'Genre', 'taxonomy singular name', 'textdomain' ), |
95 | | - 'search_items' => __( 'Search Genres', 'textdomain' ), |
96 | | - 'all_items' => __( 'All Genres', 'textdomain' ), |
97 | | - 'parent_item' => __( 'Parent Genre', 'textdomain' ), |
98 | | - 'parent_item_colon' => __( 'Parent Genre:', 'textdomain' ), |
99 | | - 'edit_item' => __( 'Edit Genre', 'textdomain' ), |
100 | | - 'update_item' => __( 'Update Genre', 'textdomain' ), |
101 | | - 'add_new_item' => __( 'Add New Genre', 'textdomain' ), |
102 | | - 'new_item_name' => __( 'New Genre Name', 'textdomain' ), |
103 | | - 'menu_name' => __( 'Genre', 'textdomain' ), |
| 96 | + 'name' => _x( 'Genres', 'taxonomy general name', 'advanced-query-loop' ), |
| 97 | + 'singular_name' => _x( 'Genre', 'taxonomy singular name', 'advanced-query-loop' ), |
| 98 | + 'search_items' => __( 'Search Genres', 'advanced-query-loop' ), |
| 99 | + 'all_items' => __( 'All Genres', 'advanced-query-loop' ), |
| 100 | + 'parent_item' => __( 'Parent Genre', 'advanced-query-loop' ), |
| 101 | + 'parent_item_colon' => __( 'Parent Genre:', 'advanced-query-loop' ), |
| 102 | + 'edit_item' => __( 'Edit Genre', 'advanced-query-loop' ), |
| 103 | + 'update_item' => __( 'Update Genre', 'advanced-query-loop' ), |
| 104 | + 'add_new_item' => __( 'Add New Genre', 'advanced-query-loop' ), |
| 105 | + 'new_item_name' => __( 'New Genre Name', 'advanced-query-loop' ), |
| 106 | + 'menu_name' => __( 'Genre', 'advanced-query-loop' ), |
104 | 107 | ); |
105 | 108 |
|
106 | 109 | $args = array( |
|
0 commit comments