9
9
]]>
10
10
</standard >
11
11
<code_comparison >
12
- <code title =" Valid: short post type slug." >
12
+ <code title =" Valid: Short post type slug." >
13
13
<![CDATA[
14
14
register_post_type(
15
15
<em>'my_short_slug'</em>,
16
16
array()
17
17
);
18
18
]]>
19
19
</code >
20
- <code title =" Invalid: too long post type slug." >
20
+ <code title =" Invalid: Too long post type slug." >
21
21
<![CDATA[
22
22
register_post_type(
23
23
<em>'my_own_post_type_too_long'</em>,
@@ -32,15 +32,15 @@ register_post_type(
32
32
]]>
33
33
</standard >
34
34
<code_comparison >
35
- <code title =" Valid: no special characters in post type slug." >
35
+ <code title =" Valid: No special characters in post type slug." >
36
36
<![CDATA[
37
37
register_post_type(
38
38
<em>'my_post_type_slug'</em>,
39
39
array()
40
40
);
41
41
]]>
42
42
</code >
43
- <code title =" Invalid: invalid characters in post type slug." >
43
+ <code title =" Invalid: Invalid characters in post type slug." >
44
44
<![CDATA[
45
45
register_post_type(
46
46
<em>'my/post/type/slug'</em>,
@@ -55,15 +55,15 @@ register_post_type(
55
55
]]>
56
56
</standard >
57
57
<code_comparison >
58
- <code title =" Valid: static post type slug." >
58
+ <code title =" Valid: Static post type slug." >
59
59
<![CDATA[
60
60
register_post_type(
61
61
<em>'my_post_active'</em>,
62
62
array()
63
63
);
64
64
]]>
65
65
</code >
66
- <code title =" Invalid: dynamic post type slug." >
66
+ <code title =" Invalid: Dynamic post type slug." >
67
67
<![CDATA[
68
68
register_post_type(
69
69
<em>"my_post_{$status}"</em>,
@@ -78,15 +78,15 @@ register_post_type(
78
78
]]>
79
79
</standard >
80
80
<code_comparison >
81
- <code title =" Valid: prefixed post slug." >
81
+ <code title =" Valid: Prefixed post slug." >
82
82
<![CDATA[
83
83
register_post_type(
84
84
<em>'prefixed_author'</em>,
85
85
array()
86
86
);
87
87
]]>
88
88
</code >
89
- <code title =" Invalid: using a reserved keyword as slug." >
89
+ <code title =" Invalid: Using a reserved keyword as slug." >
90
90
<![CDATA[
91
91
register_post_type(
92
92
<em>'author'</em>,
@@ -101,15 +101,15 @@ register_post_type(
101
101
]]>
102
102
</standard >
103
103
<code_comparison >
104
- <code title =" Valid: custom prefix post slug." >
104
+ <code title =" Valid: Custom prefix post slug." >
105
105
<![CDATA[
106
106
register_post_type(
107
107
<em>'prefixed_author'</em>,
108
108
array()
109
109
);
110
110
]]>
111
111
</code >
112
- <code title =" Invalid: using a reserved prefix." >
112
+ <code title =" Invalid: Using a reserved prefix." >
113
113
<![CDATA[
114
114
register_post_type(
115
115
<em>'wp_author'</em>,
0 commit comments