Title: Device Detect
Author: Kleor
Published: <strong>2018 年 1 月 6 日</strong>
Last modified: 2025 年 12 月 15 日

---

搜尋外掛

![](https://ps.w.org/device-detect/assets/icon-256x256.png?rev=3396730)

# Device Detect

 由 [Kleor](https://profiles.wordpress.org/kleor/) 開發

[下載](https://downloads.wordpress.org/plugin/device-detect.2.0.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/device-detect/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/device-detect/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/device-detect/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/device-detect/#developers)

 [技術支援](https://wordpress.org/support/plugin/device-detect/)

## 外掛說明

Device Detect allows you to detect the device of the user, and to **easily insert**
into posts, pages and widgets of your website **some contents only for the phones,
tablets or computers**.

 * [Documentation](https://www.kleor.com/device-detect/)

### Plugins from the same author

 * [Commerce Manager, to sell your products](https://www.kleor.com/commerce-manager/en/)
 * [Affiliation Manager, to create your affiliate program](https://www.kleor.com/affiliation-manager/en/)
 * [Membership Manager, to create your members areas](https://www.kleor.com/membership-manager/en/)
 * [Optin Manager, to build your prospects lists](https://www.kleor.com/optin-manager/en/)
 * [Contact Manager, to create your contact forms](https://www.kleor.com/contact-manager/en/)
 * [Easy Timer, to display count down/up timers](https://www.kleor.com/easy-timer/en/)
 * [Content Switcher, to display random or variable contents](https://www.kleor.com/content-switcher/en/)

## 安裝方式

You can install Device Detect through the “Add Plugins” page of the “Plugins” menu
in WordPress (Plugins => Add New => Upload Plugin). Upload the plugin file without
unzipping it. You can also install it like this:

 1. Unzip the plugin file.
 2. Upload with your FTP software the “device-detect” folder, and only this folder,
    to your plugins directory (it should be “wp-content/plugins”).

Once you have installed Device Detect, activate the plugin through the “Plugins”
menu in WordPress.

## 常見問題集

### How can I use shortcodes in my WordPress theme?

Insert into the PHP files of your theme a code like this:

    ```
    <?php echo do_shortcode('[your-shortcode]'); ?>
    ```

### How to use shortcodes in comments?

Edit the “functions.php” file (create it if it doesn’t exist) of your WordPress 
theme and add this line of code:

    ```
    add_filter('comment_text', 'do_shortcode');
    ```

## 使用者評論

![](https://secure.gravatar.com/avatar/c8dcb3d341fa945dd8705c0cd46eb84aabcedf51c5318bc411164d5cdbf5953d?
s=60&d=retro&r=g)

### 󠀁[Very useful plugin to display content with different layouts](https://wordpress.org/support/topic/very-useful-plugin-to-display-content-with-different-layouts/)󠁿

 [multze](https://profiles.wordpress.org/multze/) 2025 年 7 月 7 日

‘Device Detect’ is a very easy and intuitive to use plugin to display content with
different layouts adapted for phone, tablet or computer display – depending on the
visitor’s device. Very useful!

 [ 閱讀全部 1 則使用者評論 ](https://wordpress.org/support/plugin/device-detect/reviews/)

## 參與者及開發者

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

參與者

 *   [ Kleor ](https://profiles.wordpress.org/kleor/)

〈Device Detect〉外掛目前已有 1 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/device-detect/contributors)
為這個外掛做出的貢獻。

[將〈Device Detect〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/device-detect)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/device-detect/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/device-detect/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/device-detect/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/device-detect/)。

## 變更記錄

 * Version 2.0.1
    - Fix a fatal error
 * Version 2.0
    - Remove the “mobile-detect.php” file
 * Version 1.4.6
    - Update the “mobile-detect.php” file
 * Version 1.4.5
    - Update the “mobile-detect.php” file
 * Version 1.4.4
    - Update the “mobile-detect.php” file
 * Version 1.4.3
    - Update the “mobile-detect.php” file
 * Version 1.4.2
    - Update the “mobile-detect.php” file
 * Version 1.4.1
    - Improve the security
 * Version 1.4
    - Use anonymous functions instead of “create_function”
 * Version 1.3
    - Update the “mobile-detect.php” file
 * Version 1.2
    - Update the “mobile-detect.php” file
 * Version 1.1
    - Update the “mobile-detect.php” file
 * Version 1.0
    - Initial version

## 中繼資料

 *  版本 **2.0.1**
 *  最後更新 **6 個月前**
 *  啟用安裝數 **20+**
 *  WordPress 版本需求 ** 4.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  PHP 版本需求 ** 5.3 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/device-detect/) 及 [French (France)](https://fr.wordpress.org/plugins/device-detect/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/device-detect)
 * 標籤:
 * [content](https://tw.wordpress.org/plugins/tags/content/)[detect](https://tw.wordpress.org/plugins/tags/detect/)
   [detection](https://tw.wordpress.org/plugins/tags/detection/)[device](https://tw.wordpress.org/plugins/tags/device/)
   [mobile](https://tw.wordpress.org/plugins/tags/mobile/)
 *  [進階檢視](https://tw.wordpress.org/plugins/device-detect/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/device-detect/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/device-detect/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/device-detect/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/device-detect/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/device-detect/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/device-detect/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/device-detect/reviews/)

## 參與者

 *   [ Kleor ](https://profiles.wordpress.org/kleor/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/device-detect/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.kleor.com/donation/)