{"id":31829,"date":"2014-09-18T20:25:27","date_gmt":"2014-09-18T20:25:27","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/machine-language\/"},"modified":"2015-12-26T17:00:26","modified_gmt":"2015-12-26T17:00:26","slug":"machine-language","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/machine-language\/","author":8544055,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.3.2","stable_tag":"0.3.2","tested":"4.4.34","requires":"3.8","requires_php":"","requires_plugins":"","header_name":"Machine Language","header_author":"Viktor Sz\u00e9pe","header_description":"","assets_banners_color":"faf3e0","last_updated":"2015-12-26 17:00:26","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/szepe.net\/wp-donate\/","header_plugin_uri":"https:\/\/github.com\/szepeviktor\/machine-language","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1236,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"992848","resolution":"128x128","location":"assets","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"992848","resolution":"256x256","location":"assets","width":256,"height":256}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"992848","resolution":"772x250","location":"assets","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.3","0.3.1","0.3.2"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"992860","resolution":"1","location":"assets","width":1202,"height":692}},"screenshots":{"1":"Setting \/ Reading with Machine Language turned on."}},"plugin_section":[],"plugin_tags":[83,94,22216,2679,2275,734,5019,2218,3200,5020,1253],"plugin_category":[59],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-31829","plugin","type-plugin","status-publish","hentry","plugin_tags-admin","plugin_tags-debug","plugin_tags-debugger","plugin_tags-debugging","plugin_tags-developer","plugin_tags-development","plugin_tags-option","plugin_tags-options","plugin_tags-screen","plugin_tags-setting","plugin_tags-settings","plugin_category-utilities-and-tools","plugin_committers-szepeviktor"],"banners":{"banner":"https:\/\/ps.w.org\/machine-language\/assets\/banner-772x250.png?rev=992848","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/machine-language\/assets\/icon-128x128.png?rev=992848","icon_2x":"https:\/\/ps.w.org\/machine-language\/assets\/icon-256x256.png?rev=992848","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/machine-language\/assets\/screenshot-1.jpg?rev=992860","caption":"Setting \/ Reading with Machine Language turned on."}],"raw_content":"<!--section=description-->\n<p>Toggles human and machine language (aka ID-s) on admin pages.<\/p>\n <h4>Only for development!<\/h4>\n <p>This plugin shows you the ID-s of almost all form fields including selects, checkboxes and radio buttons like in <code>wp-admin\/options.php<\/code>.<\/p>\n <p>It works only on WordPress Settings API-like formatted &mdash; not necessarily API generated &mdash; admin pages. E.g. <code>&lt;input&gt;<\/code> elements cannot be wrapped in <code>&lt;span&gt;<\/code>.<\/p>\n <h4>Activation<\/h4>\n <p>You can find the plugin's checkbox in standard Screen Options (upper right corner). This checkbox could be overwritten &mdash; thus hidden &mdash; by poorly written plugins. To restrict Machine Language to a certain admin page, copy this to your <code>wp-config.php<\/code>:<\/p>\n <pre><code>define( 'MACHINE_LANGUAGE_HOOK', 'load-options-reading.php' ); <\/code><\/pre>\n <p>For example this line causes to run only on Settings \/ Reading.<\/p>\n <h4>Features<\/h4>\n <ul>\n<li>Basically all input ID-s are displayed in place of labels, actually <code>for<\/code> attributes of labels<\/li>\n<li><code>select<\/code>-s get a title showing all option values comma separated (hover over <code>select<\/code>-s with your mouse)<\/li>\n<li><code>option<\/code>-s get values appended in the form of \"original option text|value\"<\/li>\n<li>Radio button labels will show: \"name|value\"<\/li>\n<li>Descriptions (<code>p<\/code>-s and <code>span<\/code>-s with \"description\" class) will be hidden, this way Machine Language will clean up all admin pages, descriptions are hidden by CSS, so there's no <a href=\"http:\/\/en.wikipedia.org\/wiki\/Flash_of_unstyled_content\">FOUC<\/a><\/li>\n<\/ul>\n <h4>Other notes<\/h4>\n <ul>\n<li>Radio buttons or checkboxes with empty value are displayed with the \"Empty Set\" Unicode character: \"? \" (U+2205) ( e.g. Settings \/ Permalinks \/ Default )<\/li>\n<li><code>select<\/code>-s with empty values are not<\/li>\n<li>The plugin's checkbox in Screen Options is effective immediately<\/li>\n<li>The code is designed as a must use plugin, so there is no separated Javascript or CSS file<\/li>\n<li>State of Machine Language is saved as a user option so it is a per user setting<\/li>\n<\/ul>\n <h4>Links<\/h4>\n <p>Development goes on on <a href=\"https:\/\/github.com\/szepeviktor\/machine-language\">GitHub<\/a>.<\/p>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n <ol>\n<li>Upload <code>machine-language.php<\/code> to the <code>wp-content\/mu-plugins\/<\/code> or <code>wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress (if you've chosen the <code>plugins<\/code> dir)<\/li>\n<\/ol>\n\n<!--section=faq-->\n<h4>How can I inspect form fields not altered?<\/h4>\n <p>Even if your admin page is not generated by the <a href=\"https:\/\/github.com\/voceconnect\/voce-settings-api\">Setting API<\/a>\nyou should output HTML like in WordPress Settings pages.<\/p>\n <h4>Should I use Machine Language in production?<\/h4>\n <p>No, you shouldn't.<\/p>\n\n<!--section=changelog-->\n<h4>0.3.2<\/h4>\n <ul>\n<li>Fixed checkbox handling<\/li>\n<li>WP 4.4 compatibility<\/li>\n<\/ul>\n <h4>0.3.1<\/h4>\n <ul>\n<li>Code styling<\/li>\n<li>WP 4.3 compatibility<\/li>\n<li>Semver<\/li>\n<\/ul>\n <h4>0.3<\/h4>\n <ul>\n<li>Initial release<\/li>\n<li>The original plugin was \"Hide Descriptions\"<\/li>\n<\/ul>","raw_excerpt":"Admin page debugger tool","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/31829","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=31829"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/szepeviktor"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=31829"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=31829"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=31829"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=31829"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=31829"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=31829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}