@@ 46-55 (lines=10) @@ | ||
43 | /** |
|
44 | * Defines data structure and what elements are visible in which contexts |
|
45 | */ |
|
46 | public function get_schema() { |
|
47 | return array( |
|
48 | '$schema' => 'http://json-schema.org/draft-04/schema#', |
|
49 | 'title' => $this->field_name, |
|
50 | 'type' => 'string', |
|
51 | 'context' => array( 'view', 'edit' ), |
|
52 | 'readonly' => true, |
|
53 | 'description' => __( 'Unique VideoPress ID', 'jetpack' ), |
|
54 | ); |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * Getter: Retrieve current VideoPress data for a given attachment. |
@@ 46-55 (lines=10) @@ | ||
43 | /** |
|
44 | * Defines data structure and what elements are visible in which contexts |
|
45 | */ |
|
46 | public function get_schema() { |
|
47 | return array( |
|
48 | '$schema' => 'http://json-schema.org/draft-04/schema#', |
|
49 | 'title' => $this->field_name, |
|
50 | 'type' => 'object', |
|
51 | 'context' => array( 'view', 'edit' ), |
|
52 | 'readonly' => true, |
|
53 | 'description' => __( 'VideoPress Data', 'jetpack' ), |
|
54 | ); |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * Getter: Retrieve current VideoPress data for a given attachment. |