nguyenvanduocit
10/31/2015 - 3:36 AM

DE-OEmbed.php

<?php

/*
Plugin Name: DE OEmbed
Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
Description: A brief description of the Plugin.
Version: 1.0
Author: nguyenvanduocit
Author URI: http://URI_Of_The_Plugin_Author
License: A "Slug" license name e.g. GPL2
*/
add_action('embed_content_meta', 'deo_add_address');
/**
 * Add place's address to embed
 */
function deo_add_address(){
	global $post;
	$full_location = get_post_meta($post->ID,'et_full_location' , true);
	if($full_location){
		echo sprintf('<span class="place_full_location" style="display: inline-block; width: 154px; overflow: hidden;">%1$s</span>', $full_location);
	}
}