{"id":79766,"date":"2018-01-06T01:25:14","date_gmt":"2018-01-06T01:25:14","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/device-detect\/"},"modified":"2025-12-15T10:32:10","modified_gmt":"2025-12-15T10:32:10","slug":"device-detect","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/device-detect\/","author":6078483,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.0.1","stable_tag":"2.0.1","tested":"6.9.4","requires":"4.6","requires_php":"5.3","requires_plugins":null,"header_name":"Device Detect","header_author":"Kleor","header_description":"Allows you to detect the device of the user, and to display some contents only for the phones, tablets or computers.","assets_banners_color":"","last_updated":"2025-12-15 10:32:10","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.kleor.com\/donation\/","header_plugin_uri":"https:\/\/www.kleor.com\/device-detect\/","header_author_uri":"https:\/\/www.kleor.com","rating":5,"author_block_rating":0,"active_installs":20,"downloads":4738,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"Kleor","date":"2018-01-19 09:33:52"},"1.1":{"tag":"1.1","author":"Kleor","date":"2018-03-18 09:29:12"},"1.2":{"tag":"1.2","author":"Kleor","date":"2018-06-08 20:16:41"},"1.3":{"tag":"1.3","author":"Kleor","date":"2018-09-15 16:35:18"},"1.4":{"tag":"1.4","author":"Kleor","date":"2020-03-11 04:22:41"},"1.4.1":{"tag":"1.4.1","author":"Kleor","date":"2020-11-02 17:41:09"},"1.4.2":{"tag":"1.4.2","author":"Kleor","date":"2021-02-07 17:38:45"},"1.4.3":{"tag":"1.4.3","author":"Kleor","date":"2021-02-17 16:02:27"},"1.4.4":{"tag":"1.4.4","author":"Kleor","date":"2022-01-23 16:44:56"},"1.4.5":{"tag":"1.4.5","author":"Kleor","date":"2022-05-29 21:11:54"},"1.4.6":{"tag":"1.4.6","author":"Kleor","date":"2025-08-12 18:34:05"},"2.0":{"tag":"2.0","author":"Kleor","date":"2025-11-22 16:47:38"},"2.0.1":{"tag":"2.0.1","author":"Kleor","date":"2025-12-15 10:32:10"}},"upgrade_notice":{"":"<p>When you upgrade Device Detect, you don&#039;t lose any settings or any data.<\/p>\n\n<p>You can upgrade Device Detect through the &quot;Plugins&quot; menu in WordPress, and through the &quot;WordPress Updates&quot; page of the &quot;Dashboard&quot; menu in WordPress (Dashboard =&gt; Updates), or through the &quot;Add Plugins&quot; page of the &quot;Plugins&quot; menu in WordPress (Plugins =&gt; Add New =&gt; Upload Plugin, upload the plugin file without unzipping it). You can also upgrade it like this:<\/p>\n\n<ol>\n<li>Unzip the plugin file.<\/li>\n<li>Upload with your FTP software the &quot;device-detect&quot; folder, and only this folder, to your plugins directory (it should be &quot;wp-content\/plugins&quot;), without deleting the &quot;device-detect&quot; folder that already exists in this directory.<\/li>\n<\/ol>\n\n<p>You don&#039;t need to deactivate and reactivate the plugin.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3396729,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3396730,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2","1.3","1.4","1.4.1","1.4.2","1.4.3","1.4.4","1.4.5","1.4.6","2.0","2.0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[529,2560,1124,1123,841],"plugin_category":[],"plugin_contributors":[80411],"plugin_business_model":[],"class_list":["post-79766","plugin","type-plugin","status-publish","hentry","plugin_tags-content","plugin_tags-detect","plugin_tags-detection","plugin_tags-device","plugin_tags-mobile","plugin_contributors-kleor","plugin_committers-kleor"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/device-detect\/assets\/icon-128x128.png?rev=3396729","icon_2x":"https:\/\/ps.w.org\/device-detect\/assets\/icon-256x256.png?rev=3396730","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Device Detect allows you to detect the device of the user, and to <strong>easily insert<\/strong> into posts, pages and widgets of your website <strong>some contents only for the phones, tablets or computers<\/strong>.<\/p>\n\n<ul>\n<li><a href=\"https:\/\/www.kleor.com\/device-detect\/\">Documentation<\/a><\/li>\n<\/ul>\n\n<h3>Plugins from the same author<\/h3>\n\n<ul>\n<li><a href=\"https:\/\/www.kleor.com\/commerce-manager\/en\/\">Commerce Manager, to sell your products<\/a><\/li>\n<li><a href=\"https:\/\/www.kleor.com\/affiliation-manager\/en\/\">Affiliation Manager, to create your affiliate program<\/a><\/li>\n<li><a href=\"https:\/\/www.kleor.com\/membership-manager\/en\/\">Membership Manager, to create your members areas<\/a><\/li>\n<li><a href=\"https:\/\/www.kleor.com\/optin-manager\/en\/\">Optin Manager, to build your prospects lists<\/a><\/li>\n<li><a href=\"https:\/\/www.kleor.com\/contact-manager\/en\/\">Contact Manager, to create your contact forms<\/a><\/li>\n<li><a href=\"https:\/\/www.kleor.com\/easy-timer\/en\/\">Easy Timer, to display count down\/up timers<\/a><\/li>\n<li><a href=\"https:\/\/www.kleor.com\/content-switcher\/en\/\">Content Switcher, to display random or variable contents<\/a><\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>You can install Device Detect through the \"Add Plugins\" page of the \"Plugins\" menu in WordPress (Plugins =&gt; Add New =&gt; Upload Plugin). Upload the plugin file without unzipping it. You can also install it like this:<\/p>\n\n<ol>\n<li>Unzip the plugin file.<\/li>\n<li>Upload with your FTP software the \"device-detect\" folder, and only this folder, to your plugins directory (it should be \"wp-content\/plugins\").<\/li>\n<\/ol>\n\n<p>Once you have installed Device Detect, activate the plugin through the \"Plugins\" menu in WordPress.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20can%20i%20use%20shortcodes%20in%20my%20wordpress%20theme%3F'><h3>How can I use shortcodes in my WordPress theme?<\/h3><\/dt>\n<dd><p>Insert into the PHP files of your theme a code like this:<\/p>\n\n<pre><code>&lt;?php echo do_shortcode('[your-shortcode]'); ?&gt;\n<\/code><\/pre><\/dd>\n<dt id='how%20to%20use%20shortcodes%20in%20comments%3F'><h3>How to use shortcodes in comments?<\/h3><\/dt>\n<dd><p>Edit the \"functions.php\" file (create it if it doesn't exist) of your WordPress theme and add this line of code:<\/p>\n\n<pre><code>add_filter('comment_text', 'do_shortcode');\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<ul>\n<li>Version 2.0.1\n\n<ul>\n<li>Fix a fatal error<\/li>\n<\/ul><\/li>\n<li>Version 2.0\n\n<ul>\n<li>Remove the \"mobile-detect.php\" file<\/li>\n<\/ul><\/li>\n<li>Version 1.4.6\n\n<ul>\n<li>Update the \"mobile-detect.php\" file<\/li>\n<\/ul><\/li>\n<li>Version 1.4.5\n\n<ul>\n<li>Update the \"mobile-detect.php\" file<\/li>\n<\/ul><\/li>\n<li>Version 1.4.4\n\n<ul>\n<li>Update the \"mobile-detect.php\" file<\/li>\n<\/ul><\/li>\n<li>Version 1.4.3\n\n<ul>\n<li>Update the \"mobile-detect.php\" file<\/li>\n<\/ul><\/li>\n<li>Version 1.4.2\n\n<ul>\n<li>Update the \"mobile-detect.php\" file<\/li>\n<\/ul><\/li>\n<li>Version 1.4.1\n\n<ul>\n<li>Improve the security<\/li>\n<\/ul><\/li>\n<li>Version 1.4\n\n<ul>\n<li>Use anonymous functions instead of \"create_function\"<\/li>\n<\/ul><\/li>\n<li>Version 1.3\n\n<ul>\n<li>Update the \"mobile-detect.php\" file<\/li>\n<\/ul><\/li>\n<li>Version 1.2\n\n<ul>\n<li>Update the \"mobile-detect.php\" file<\/li>\n<\/ul><\/li>\n<li>Version 1.1\n\n<ul>\n<li>Update the \"mobile-detect.php\" file<\/li>\n<\/ul><\/li>\n<li>Version 1.0\n\n<ul>\n<li>Initial version<\/li>\n<\/ul><\/li>\n<\/ul>","raw_excerpt":"Allows you to detect the device of the user, and to display some contents only for the phones, tablets or computers.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/79766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=79766"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kleor"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=79766"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=79766"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=79766"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=79766"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=79766"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=79766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}