WP Easy Embed

WP Easy Embed allows you to embed videos, images and such via OEmbed service without manually editing the post (or page).
If content provider support additional fields they can be used (right now only vimeo ones are supported)

i18n

Plugin is ready for l10n, just a little note – there are two language files to translate,
languages/wp-easy-embed.pot and tinymce/langs/en.js

Plugin’s actions & filters

  • wp_easy_embed_config_{$config_key} filter
  • wp_easy_embed_init action. Runs before any button created
  • wp_easy_embed_additional_field_{$field_type} filter with $args parameter. See below.

Adding support for some provider additional fields

  • Add wp_easy_embed_config_supported_providers filter and push to passed array one more string – provider name (its domain name, please)
  • Add wp_easy_embed_config_supported_attributes_{$provider_name} filter and return assoc array in format, described in next section

Supported Atrributes Array Format

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

0

评论0

 
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
显示验证码
没有账号?注册  忘记密码?

社交账号快速登录