這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Js Css Include Manager

外掛說明

This plugin allows you to include extra JavaScript or CSS files in your WordPress page.

You can:

  • Include as many as you like.
  • Choose whether files are to be included on the front-end or the back-end.
  • Choose where to include them in the header or the footer.
  • Choose conditions to use for inclusion (logged-in users only, admin users only, front page only).
  • Choose conditions of you can add.

Please if you want to add conditions.
For example add filter:

add_filter( 'jcim_condition' , 'my_conditions' );
function my_conditions( ) {
    $conditions = array(
        array(
            "code" => "current_user_can",
            "val" => "edit_themes",
            "desc" => "Only edit theme role have user",
            "help_link" => "https://codex.wordpress.org/Function_Reference/current_user_can"
        ),
        array(
            "code" => "is_admin",
            "val" => "",
            "desc" => "Only admin screen",
            "help_link" => ""
        ),
    );
    return $conditions;
}

日本語でのご説明

このプラグインは、よくごちゃごちゃになってしまうjavascriptファイルの読み込みとcssファイルの読み込みを、
管理画面だけ、またはサイトだけに読み込むファイルを、1箇所で管理するためのプラグインです。
サイトで何のファイルを読み込んでいるのか、すっきり。

螢幕擷圖

  • Settings Interface
  • Configuration Example
  • Conditions after added of settins interface

安裝方式

  1. Upload the full directory to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to WP-Admin -> Settings -> Js Css Include Manager to configure the plugin.

常見問題集

A question that someone might have
What about foo bar?

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Js Css Include Manager〉的開發相關工作。

參與者

將〈Js Css Include Manager〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.4.4

  • Fixed: Re-setting data broken to file location.
  • Changed: Delete the parent theme location if use child theme.

1.4.3

  • Security enhancement: Escape to add_query_arg/remove_query_arg.

1.4.2

  • Fixed: Get the current user group.

1.4.1

  • Fixed: Small bug fixes.
  • Fixed: Remove useless globals.

1.4

  • Added: Support to Multisite.
  • Added: Allows the change of setting user role.
  • Updated: Organize sorce files.
  • Updated: Delete how to update in ajax.
  • Updated: Strinct condition check.

1.3.3.1

  • Fixed: Data update way.

1.3.3

  • Updated: Change the source code.
  • Updated: Data save way of settings.
  • Updated: Change way to edit of settings.
  • Updated: Compatible for WP 3.8.
  • Updated: Screen shots.
  • Added: Filter for condition of settings.

1.3.2

  • Support on SSL.

1.3.1.2 alpha

  • Fixed bug : Active themes directory location settings.
  • Added field to data identification for backwards compatibility.

1.3.1.1

  • Translate fix : Japanese.
  • Checked Compatibility.
  • Added Information of plugin.

1.3.1

Added a confirmation of Nonce field.

1.3

Adding capability to add file based on conditions (e.g. user is logged in, user is an admin, etc.).

1.2.1

Bugfix: Action footer bug fixed.

1.2

Change the notation of the donation.

1.1

Change Layout.
Fixed a bug that does not appear in the footer.

1.0

This is the initial release.