1 | <?php |
||
5 | class Meta extends \Jetpack_Sync_Module { |
||
6 | public function name() { |
||
9 | |||
10 | /** |
||
11 | * This implementation of get_objects_by_id() is a bit hacky since we're not passing in an array of meta IDs, |
||
12 | * but instead an array of post or comment IDs for which to retrieve meta for. On top of that, |
||
13 | * we also pass in an associative array where we expect there to be 'meta_key' and 'ids' keys present. |
||
14 | * |
||
15 | * This seemed to be required since if we have missing meta on WP.com and need to fetch it, we don't know what |
||
16 | * the meta key is, but we do know that we have missing meta for a given post or comment. |
||
17 | * |
||
18 | * @param string $object_type The type of object for which we retrieve meta. Either 'post' or 'comment' |
||
19 | * @param array $config Must include 'meta_key' and 'ids' keys |
||
20 | * |
||
21 | * @return array |
||
22 | */ |
||
23 | public function get_objects_by_id( $object_type, $config ) { |
||
63 | } |
||
64 |