Skip to content

Instantly share code, notes, and snippets.

View valentindotxyz's full-sized avatar

Valentin P. valentindotxyz

View GitHub Profile
### Keybase proof
I hereby claim:
* I am valentindotxyz on github.
* I am valentindotxyz (https://keybase.io/valentindotxyz) on keybase.
* I have a public key whose fingerprint is 0DC3 1821 97D5 68C8 BCD8 9CFE 2CC9 6B19 66AB 5BA0
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am vp42 on github.
  • I am vp_fr (https://keybase.io/vp_fr) on keybase.
  • I have a public key ASAmUYoiDQMCL_pp8AaX_SRtux6DHgwNff5cVxWetOAvlgo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am vp42 on github.
  • I am vp_fr (https://keybase.io/vp_fr) on keybase.
  • I have a public key ASDOZfbA4ZevldIkStq6aVravYR03RXyh9sRMCNB_cdd8Ao

To claim this, I am signing this object:

// Get the post image
if(!function_exists('get_post_video_thumbnail')){
function get_post_video_thumbnail( $post_id, $size = 'maxresdefault' ) {
$video_url = get_post_meta( $post_id, 'blu_video_url', true );
if($video_url) {
$video_url = html_entity_decode($video_url);
$url = $video_url;
$urls = parse_url($url);
if ($urls['host'] == 'youtu.be') :