We'll create fresh WordPress site with Js Css Include Manager installed. You have 20 minutes to test the plugin after that site we'll be deleted.
This plugin allows you to include extra JavaScript or CSS files in your WordPress page.
You can:
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箇所で管理するためのプラグインです。
サイトで何のファイルを読み込んでいるのか、すっきり。