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

Control per Page

外掛說明

Function Overview:

This type of WordPress plugin provides the capability to manage which plugins and their JavaScript files are active on specific pages of your website. This granular level of control helps you ensure that only the necessary resources are loaded for each page, enhancing overall site performance and functionality.

Page Detection:

The plugin first identifies the current page being loaded. This can be determined using various methods such as checking the page URL, page ID, or specific page attributes.

Configuration Interface:

The plugin typically includes a user-friendly configuration interface within the WordPress admin dashboard. This interface allows administrators to select the plugins and JavaScript files that should be enabled or disabled on a per-page basis.

Mapping and Rules:

Administrators create a mapping of pages to plugins and JavaScript files. This mapping defines which plugins and scripts should be active or inactive on each page. The rules can be based on various criteria such as page type (e.g., post, page, custom post type), URL patterns, user roles, and more.

Conditional Loading:

Based on the defined mapping and rules, the plugin dynamically enables or disables the specified plugins and JavaScript files. This can be achieved using WordPress functions like wp_enqueue_script, wp_dequeue_script, activate_plugin, and deactivate_plugins.

Execution:

When a page is loaded, the plugin checks the mapping and then loads or unloads the specified plugins and JavaScript files accordingly. This process ensures that only the necessary resources are loaded, reducing the page load time and improving performance.

Benefits of Performance Optimization:

By only loading necessary plugins and JavaScript files, you can reduce the amount of data that needs to be transferred and processed, leading to faster page load times.

Security:

Disabling unnecessary plugins and scripts on pages where they are not needed reduces the potential attack surface of your website, enhancing

For PRO version:

Check our YouTube demo:

https://www.youtube.com/watch?v=9ZYM809DfcM

 

 

螢幕擷圖

使用者評論

2025 年 7 月 14 日
I was looking for this kind of feature and I am happy i have found this by research here at plugin. I was watching also how this works in Youtube and this is what i was looking for. I manage to control the output using this plugin which is very functional and effective way. very easy to use. straight forward!
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Control per Page〉的開發相關工作。

參與者

將〈Control per Page〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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