You appear to be a bot. Output may be restricted
Description
Gets the VideoPress GUID for a given attachment.
This is pulled out into a separate method to support unit test mocking.
Usage
$string = WPCOM_REST_API_V2_Attachment_VideoPress_Field::get_videopress_guid( $attachment_id, $blog_id );
Parameters
- $attachment_id
- ( int ) required – Attachment ID.
- $blog_id
- ( int ) required – Blog ID.
Returns
string
Source
File name: jetpack/_inc/lib/core-api/wpcom-fields/attachment-fields-videopress.php
Lines:
1 to 3 of 3
public function get_videopress_guid( $attachment_id, $blog_id ) { return video_get_info_by_blogpostid( $blog_id, $attachment_id )->guid; }