public function apply_custom_images() { $images = $this->_has_field_value('images', array()); if (!empty($images) && is_array($images)) { foreach ($images as $image) { if ($image) { echo wdfb_get_opengraph_property('image', $image); } } } }
function inject_fb_comments_admin_og() { if (defined('WDFB_APP_ID_OG_SET')) { return false; } $app_id = trim($this->data->get_option('wdfb_api', 'app_key')); if (!$app_id) { return false; } echo wdfb_get_opengraph_property('fb:app_id', $app_id, false); define('WDFB_APP_ID_OG_SET', true); }