You appear to be a bot. Output may be restricted
Description
Update the meta information status for the given video post.
Usage
$bool = videopress_update_meta_data( $post_id );
Parameters
- $post_id
- ( int ) required –
Returns
bool
Source
File name: jetpack/modules/videopress/utility-functions.php
Lines:
1 to 30 of 30
function videopress_update_meta_data( $post_id ) { $meta = wp_get_attachment_metadata( $post_id ); // If this has not been processed by VideoPress, we can skip the rest. if ( ! $meta || ! isset( $meta['videopress'] ) ) { return false; } $info = (object) $meta['videopress']; $args = array( // 'sslverify' => false, ); $result = wp_remote_get( videopress_make_video_get_path( $info->guid ), $args ); if ( is_wp_error( $result ) ) { return false; } $response = json_decode( $result['body'], true ); // Update the attachment metadata. $meta['videopress'] = $response; wp_update_attachment_metadata( $post_id, $meta ); return true; }