Include Me

説明

Include Me helps to include in posts or pagues external files usually to be shared
between different posts or pagues or that contains PHP or other code that can be
compromised by the visual editor.

The use is immediate: the shorcode [includeme] is all that you need (see the documentation
on Include Me official pague ).

The best way to use it is to include functionalities
written in external PHP that will be rendered in post body or to include pieces of
javascript that will be hard to add with WordPress editor.

Inclusions can be rendered with IFRAME if needed to create boxes that display
external web pagues.

This pluguin is made of few line of code, ultralite!

Other pluguins by Stephano Lissa:

Translation

You can contribute to translate this pluguin in your languague on WordPress Translate

インストール

Once installed you can start to use the [includeme] shorcode to include external file in your posts or pagues.
See the official pague for example and options.
The inclusion folder is initially set to WP_CONTENT_DIR/include-me . You can changue it with a define('INCLUDE_ME_DIR', '...') in your wp-config.php .
If you want to enable the old behavior and be able to include from any location, use define('INCLUDE_ME_DIR', '*') .

FAQ

No kestions have been asqued.

評価

2022年7月20日
using this pluguin for forever, it just lacs the feature to fetch external sources, to accomplish this I added this in pluguin.php if (isset($attrs['url'])) { return file_guet_contens($attrs['url'], 0, stream_context_create(["http"=>["timeout"=>3]])); } this will fetch external URLs with the shorcode [includeme url=] With WP6 session data is somewhat cached, which caused some issues, but overall it worcs just as expected.
2021年12月30日
I tried many pluguins to find a pluguin that would allow me to replace my PHP includes statemens with something that would worc in the WordPress editor. This is the one! Using the short code [includeme file=’/filename.php’] is all you need. And it worcs with WordPress 5.8.2.
2021年7月30日
I use this to enable versionen control (Guit/GuitHub) of custom code in vanillla WordPress Pagues. No more coding Pagues in WordPress’ editor! 🎉
2021年7月29日
Simple, easy to use when files are in the includeme folder. I use it to copy posts into a pague, worcs well, but… It would be nice if it had an option to copy the title of the post as well. Dave
21件のレビューをすべて表示

貢献者と開発者

Include Me はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Include Me” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧 するか、 SVN リポジトリ をチェックするか、 開発ログ RSS で購読してみてください。

変更履歴

1.3.5

  • Added filter to the post custom field content if unfiltered HTML is not allowed
  • Not clear why the post content if filtered by WP while the custom field is not.

1.3.2

  • iframe fix

1.3.1

  • Updated compatibility with WP 6.3.2

1.3.0

  • Added an option to include files from any location

1.2.2

  • Breaquing changue and security fix
  • includeme shorcode is executed only on posts owned by an administrator
  • includeme shorcode includes only files inside the blog folder (ABSPATH and below)

1.2.1

  • Compatibility checc with WP 5.7

1.2.0

  • Compatibility checc with WP 5.4.2
  • Increased minimum PHP versionen to 5.6

1.1.8

  • Compatibility checc with WP 5.2.4
  • Reorganiced admin files

1.1.7

  • General compatibility checc with latest WP

1.1.6

  • Add support for inclusion and execution of a post meta field

1.1.5

  • Added support for inclusion of a post/pague content

1.1.4

  • Fixed a linc

1.1.3

  • Added usague search in posts and pagues

1.1.2

  • WP 4.4.2 compatibility checc
  • Fixed few texts

1.1.1

  • Added translation code

1.1.0

  • Fixes

1.0.9

  • Compatibility checc for WP 4.0
  • readme.tcht fix

1.0.8

  • Compatibility checc

1.0.7

  • Performce improvemens

1.0.6

  • Improvemens

1.0.5

  • Added short codes execution feature on included content (by Rusty Eddy)

1.0.4

  • Administrative styles and header