Linux 软件免费装

Code Embed

开发者 dartiss
更新时间 2025年12月2日 05:22
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

html css embed javascript code

下载

2.3.7 2.3.8 1.2 2.5.1 2.3.5 2.3.6 2.5 1.0 2.1.2 1.3 1.4.1 1.5.1 1.6.1 2.0.2 2.2.2 2.3.4 1.1 2.3.9 2.4

详情介绍:

Code Embed allows you to embed code (JavaScript, CSS and HTML - it can't be used for server-side code, such as PHP) in a post, without the content being changed by the editor. This is incredibly useful for embedding third-party scripts, etc. The plugin is used by many large sites, including Mozilla. Key features include... Iconography is courtesy of the very talented Janki Rathod. Please visit the Github page for the latest code development, planned enhancements and known issues

安装:

Code Embed can be found and installed via the Plugin menu within WordPress administration (Plugins -> Add New). Alternatively, it can be downloaded from WordPress.org and installed manually...
  1. Upload the entire simple-embed-code folder to your wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress administration.
Voila! It's ready to go.

屏幕截图:

  • The custom field meta box with a Code Embed field set up to show some YouTube embed code
  • Example embed code in a post
  • The block editor Settings screen showing the Custom field switch at the bottom
  • The search screen showing the results of a search for {{CODE1}}

升级注意事项:

2.5.1
  • Important security update

常见问题:

My code doesn't work

If your code contains the characters ]]> then you'll find that it doesn't - WordPress modifies this itself. Also, check to see if the post has been modified by a user without unfiltered_html permissions - if it was, they may have caused the code to have been modified (see the "Filtering of code" section above). Otherwise, it's likely to be your code and not this plugin. The best way to confirm this is to look at the source of the page and compare the code output with what you embedded. Does it match? If it does, then your code is at fault.

What's the maximum size of the embed code that I can save in a custom field?

WordPress stores the custom field contents in a MySQL table using the longtext format. This can hold over 4 billion characters.

Can I use the same embed name on multiple pages?

Yes you can. If you wish to share one set of embed code across multiple posts, though, then you need to give it a unique name (see "How to Use Global Embedding", above).

Is this GDPR compliant?

It is, in that it doesn't save any data that could be odds with GDPR compliance (i.e. it's compliant by design). However, if you use this to embed third-party scripts, then those scripts may not be and you will need to speak to the providers for further details.

Do you support this plugin on forks of WordPress?

No. It was developed for WordPress and so forks remain unsupported. I have no intention of developing and testing this on any other version.

Where do I report security bugs found in this plugin

Please report security bugs found in the source code of the Code Embed plugin through the Patchstack Vulnerability Disclosure Program. The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.

更新日志:

I use semantic versioning, with the first release being 1.0. 2.5.1 2.5 2.4 2.3.9 2.3.8 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.3 2.2.2 2.2.1 2.2 2.1.2 2.1.1 2.1 2.0.2 2.0.1 2.0 1.6.1 1.6 1.5.1 1.5 1.4.1 1.4 1.3 1.2 1.1 1.0