{"id":206213,"date":"2011-07-20T08:00:00","date_gmt":"2011-07-20T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/wp-easy-embed\/"},"modified":"2012-01-17T19:50:00","modified_gmt":"2012-01-17T19:50:00","slug":"wp-easy-embed","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/wp-easy-embed\/","title":{"rendered":"WP Easy Embed"},"content":{"rendered":"<p>WP Easy Embed allows you to embed videos, images and such via <a href=\"http:\/\/oembed.com\/\" rel=\"nofollow ugc\">OEmbed service<\/a> without manually editing the post (or page).<br \/>\nIf content provider support additional fields they can be used (right now only <a href=\"http:\/\/vimeo.com\/api\/docs\/oembed\" rel=\"nofollow ugc\">vimeo ones<\/a> are supported)<\/p>\n<h4>i18n<\/h4>\n<p>Plugin is ready for l10n, just a little note \u2013 there are two language files to translate,<br \/>\nlanguages\/wp-easy-embed.pot and tinymce\/langs\/en.js<\/p>\n<h4>Plugin\u2019s actions & filters<\/h4>\n<ul>\n<li>wp_easy_embed_config_{$config_key} filter<\/li>\n<li>wp_easy_embed_init action. Runs before any button created<\/li>\n<li>wp_easy_embed_additional_field_{$field_type} filter with $args parameter. See below.<\/li>\n<\/ul>\n<h4>Adding support for some provider additional fields<\/h4>\n<ul>\n<li>Add wp_easy_embed_config_supported_providers filter and push to passed array one more string \u2013 provider name (its domain name, please)<\/li>\n<li>Add wp_easy_embed_config_supported_attributes_{$provider_name} filter and return assoc array in format, described in next section<\/li>\n<\/ul>\n<h4>Supported Atrributes Array Format<\/h4>\n<pre><code>array(\n    'Attribute name #1' => array('type' => 'text', 'value' => 'Default value', 'title' => 'Title for field #1')\n    , 'Attribute name #2' => array('type' => 'checkbox', 'value' => [true|false], 'title' => 'Title for field #2')\n    , 'Attribute name #3' => array('type'=>'select', 'values'=>array('value 1','value 2', ...), 'value' => 'Selected one', 'title' => 'Title for field #3')\n    , 'Attribute name #4' => array('type' => 'your own type', 'value' => '', 'title' => 'Title for field #4')\n)\n<\/code><\/pre>\n<p>To add type, add filter handler for wp_easy_embed_additional_field_{$field_type} and return html. Name is 1st parameter and config for that attribute is passed in second parameter<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WP Easy Embed allows you to embed videos, images and such via OEmbed service without manually editing the post (or page)<\/p>\n","protected":false},"author":65,"featured_media":228505,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"WP Easy Embed - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"WP Easy Embed allows you to embed videos, images and such via OEmbed service without manually editing the post (or page)"},"footnotes":""},"categories":[1],"tags":[849,71,98,187,189],"class_list":["post-206213","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-embed","tag-post","tag-video","tag-vimeo","tag-youtube"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/206213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=206213"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/206213\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/228505"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=206213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=206213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=206213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}