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

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.

安裝方式

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');

使用者評論

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

參與者及開發者

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

參與者

〈Device Detect〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Device Detect〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

  • 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