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