Thanks, Im actually trying to show this function. I think were close.
<?php
$_g = stripslashes_deep ($_GET);
if (isset ($_g["_s2member_seeking"]["post"]) && has_media_embed()) {
$post_id = esc_html ($_g["_s2member_seeking"]["post"]) ;
$post_object = get_post( $post_id );
do_action( 'get_teaser', $post_object->ID, absint( $video_width ), absint( $video_height ) );}
?>
More
add_action( 'get_teaser', 'ti_get_teaser', 10, 5 );
Function
function has_media_embed( $post_id = null ) {
$post_id = ( null === $post_id ) ? get_the_ID() : $post_id;
/* Get global values */
global $media_embed_mb;
/* Get media embed metabox options */
$media_embed_mb->the_meta( $post_id );
$media_source = $media_embed_mb->get_the_value( 'media_source' );
$media_embed_code = $media_embed_mb->get_the_value( 'media_embed_code' );
$media_embed = ( $media_source || $media_embed_code ) ? true : false;
return $media_embed;
}
Ill add later. Im clueless.on this, thanks for your help.