• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Jetpack a2z

Jetpack a2z

Jetpack a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / WPCOM_REST_API_V2_Attachment_VideoPress_Field::get_videopress_guid() – Gets the VideoPress GUID for a given attachment.

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;
  }
 

 View on GitHub View on Trac

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Related

Published: 27 November 2019 | Last updated: 27 November 2019

Primary Sidebar

Information

Function name: WPCOM_REST_API_V2_Attachment_VideoPress_Field::get_videopress_guid
Class ref: WPCOM_REST_API_V2_Attachment_VideoPress_Field
Plugin ref: Jetpack
Version: 9.2
Sourcefile: _inc/lib/core-api/wpcom-fields/attachment-fields-videopress.php
File ref: _inc/lib/core-api/wpcom-fields/attachment-fields-videopress.php
Deprecated?: No
API Letters: A,R,V,W

Footer

Jetpack a2z
Jetpack a2z
Jetpack a2z
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  jetpack.wp-a2z.org
© Copyright Jetpack a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites