Created
September 15, 2019 06:02
-
-
Save masumskaib396/1675817c570229a07b7288a99794955f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( ! function_exists( 'prefix_get_meta' ) ) { | |
function prefix_get_meta( $data ) { | |
global $wp_embed; | |
$content = $wp_embed->autoembed( $data ); | |
$content = $wp_embed->run_shortcode( $content ); | |
$content = do_shortcode( $content ); | |
$content = wpautop( $content ); | |
return $content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment