How can i create a function to get youtube video time
The following are the functions that I use to extract data from a YouTube response to wp_remote_get. It’s just the basic stuff, you’ll have to adjust, complement and integrate into your code. add_action( ‘save_post’, ‘brsfl_save_postdata’ ); function brsfl_save_postdata( $post_id ) { // IMPORTANT! // Check for DOING_AUTOSAVE and wp_verify_nonce() $consult = brsfl_yt_api( $_POST[‘yt_id’] ); if( … Read more