|
13 | 13 | * |
14 | 14 | * # List all font faces |
15 | 15 | * $ wp font face list |
16 | | - * +----+-------------+-------------+ |
17 | | - * | ID | post_title | post_parent | |
18 | | - * +----+-------------+-------------+ |
19 | | - * | 15 | Regular | 10 | |
20 | | - * +----+-------------+-------------+ |
| 16 | + * +----+---------+--------+ |
| 17 | + * | ID | parent | name | |
| 18 | + * +----+---------+--------+ |
| 19 | + * | 15 | 10 | Regular| |
| 20 | + * +----+---------+--------+ |
21 | 21 | * |
22 | 22 | * # Get details about a font face |
23 | 23 | * $ wp font face get 15 |
24 | | - * +------------+-------------+ |
25 | | - * | Field | Value | |
26 | | - * +------------+-------------+ |
27 | | - * | ID | 15 | |
28 | | - * | post_title | Regular | |
29 | | - * +------------+-------------+ |
| 24 | + * +--------+---------+ |
| 25 | + * | Field | Value | |
| 26 | + * +--------+---------+ |
| 27 | + * | ID | 15 | |
| 28 | + * | name | Regular | |
| 29 | + * +--------+---------+ |
30 | 30 | * |
31 | 31 | * # Create a new font face |
32 | 32 | * $ wp font face create --post_parent=10 --post_title="Bold" --post_name="bold" |
@@ -82,30 +82,31 @@ class Font_Face_Command extends WP_CLI_Command { |
82 | 82 | * These fields will be displayed by default for each font face: |
83 | 83 | * |
84 | 84 | * * ID |
85 | | - * * post_title |
86 | | - * * post_name |
87 | | - * * post_parent |
88 | | - * * post_status |
89 | | - * * post_date |
| 85 | + * * parent |
| 86 | + * * name |
| 87 | + * * fontFamily |
| 88 | + * * fontStyle |
| 89 | + * * fontWeight |
| 90 | + * * fontDisplay |
90 | 91 | * |
91 | 92 | * ## EXAMPLES |
92 | 93 | * |
93 | 94 | * # List all font faces |
94 | 95 | * $ wp font face list |
95 | | - * +----+-------------+-------------+ |
96 | | - * | ID | post_title | post_parent | |
97 | | - * +----+-------------+-------------+ |
98 | | - * | 15 | Regular | 10 | |
99 | | - * +----+-------------+-------------+ |
| 96 | + * +----+--------+----------+------------+ |
| 97 | + * | ID | parent | name | fontWeight | |
| 98 | + * +----+--------+----------+------------+ |
| 99 | + * | 15 | 10 | Regular | 400 | |
| 100 | + * +----+--------+----------+------------+ |
100 | 101 | * |
101 | 102 | * # List font faces for a specific family |
102 | 103 | * $ wp font face list --post_parent=10 |
103 | | - * +----+-------------+-------------+ |
104 | | - * | ID | post_title | post_parent | |
105 | | - * +----+-------------+-------------+ |
106 | | - * | 15 | Regular | 10 | |
107 | | - * | 16 | Bold | 10 | |
108 | | - * +----+-------------+-------------+ |
| 104 | + * +----+--------+----------+------------+ |
| 105 | + * | ID | parent | name | fontWeight | |
| 106 | + * +----+--------+----------+------------+ |
| 107 | + * | 15 | 10 | Regular | 400 | |
| 108 | + * | 16 | 10 | Bold | 700 | |
| 109 | + * +----+--------+----------+------------+ |
109 | 110 | * |
110 | 111 | * @subcommand list |
111 | 112 | */ |
@@ -188,12 +189,12 @@ static function ( $post ) { |
188 | 189 | * |
189 | 190 | * # Get font face with ID 15 |
190 | 191 | * $ wp font face get 15 |
191 | | - * +------------+-------------+ |
192 | | - * | Field | Value | |
193 | | - * +------------+-------------+ |
194 | | - * | ID | 15 | |
195 | | - * | post_title | Regular | |
196 | | - * +------------+-------------+ |
| 192 | + * +--------+---------+ |
| 193 | + * | Field | Value | |
| 194 | + * +--------+---------+ |
| 195 | + * | ID | 15 | |
| 196 | + * | name | Regular | |
| 197 | + * +--------+---------+ |
197 | 198 | */ |
198 | 199 | public function get( $args, $assoc_args ) { |
199 | 200 | $font_face_id = $args[0]; |
|
0 commit comments