PHP Class Jetpack_Sync_Module_Meta, jetpack

Inheritance: extends Jetpack_Sync_Module
显示文件 Open project: automattic/jetpack

Public Methods

Method Description
get_objects_by_id ( string $object_type, array $config ) : array This implementation of get_objects_by_id() is a bit hacky since we're not passing in an array of meta IDs, but instead an array of post or comment IDs for which to retrieve meta for. On top of that, we also pass in an associative array where we expect there to be 'meta_key' and 'ids' keys present.
name ( )

Method Details

get_objects_by_id() public method

This seemed to be required since if we have missing meta on WP.com and need to fetch it, we don't know what the meta key is, but we do know that we have missing meta for a given post or comment.
public get_objects_by_id ( string $object_type, array $config ) : array
$object_type string The type of object for which we retrieve meta. Either 'post' or 'comment'
$config array Must include 'meta_key' and 'ids' keys
return array

name() public method

public name ( )