{"id":87752,"date":"2011-05-14T08:00:00","date_gmt":"2011-05-14T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/humanstxt\/"},"modified":"2019-06-11T01:06:00","modified_gmt":"2019-06-11T01:06:00","slug":"humanstxt","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/humanstxt\/","title":{"rendered":"Humans TXT"},"content":{"rendered":"<p>Credit the people behind your website in your <strong>humans.txt<\/strong> file. Easy to edit, directly within WordPress.<\/p>\n<ul>\n<li>Use <strong>variables<\/strong> like a <em>last-updated<\/em> date, active plugins and <a href=\"https:\/\/wordpress.org\/extend\/plugins\/humanstxt\/other_notes\/#Variables\" rel=\"ugc\">many others\u2026<\/a><\/li>\n<li>Use the <code>[humanstxt]<\/code> shortcode to display your <em>humans.txt<\/em> on your site<\/li>\n<li>Add an author link tag to your site\u2019s <code><head><\/code> tag<\/li>\n<li>Allow non-admins to edit the <em>humans.txt<\/em><\/li>\n<li>Customize everything with custom <a href=\"https:\/\/wordpress.org\/extend\/plugins\/humanstxt\/other_notes\/#Plugin-Actions-and-Filters\" rel=\"ugc\">filters, actions and pluggable functions<\/a><\/li>\n<li>Restore previously saved revisions of your <em>humans.txt<\/em><\/li>\n<\/ul>\n<p>More information on the Humans TXT can be found on the <a href=\"http:\/\/humanstxt.org\/\" rel=\"nofollow ugc\">official Humans TXT website<\/a>.<\/p>\n<h3>Variables<\/h3>\n<ul>\n<li><code>$wp-title$<\/code> \u2013 Name (title) of site\/blog<\/li>\n<li><code>$wp-tagline$<\/code> \u2013 Tagline (description) of site\/blog<\/li>\n<li><code>$wp-posts$<\/code> \u2013 Number of published posts<\/li>\n<li><code>$wp-pages$<\/code> \u2013 Number of published pages<\/li>\n<li><code>$wp-lastupdate$<\/code> \u2013 Date of last modified post or page<\/li>\n<li><code>$wp-authors$<\/code> \u2013 Active authors and their contact details<\/li>\n<li><code>$wp-language$<\/code> \u2013 WordPress language(s)<\/li>\n<li><code>$wp-plugins$<\/code> \u2013 Activated WordPress plugins<\/li>\n<li><code>$wp-charset$<\/code> \u2013 Encoding used for pages and feeds<\/li>\n<li><code>$wp-version$<\/code> \u2013 Installed WordPress version<\/li>\n<li><code>$php-version$<\/code> \u2013 Running PHP parser version<\/li>\n<li><code>$wp-theme$<\/code> \u2013 Summary of the active WordPress theme<\/li>\n<li><code>$wp-theme-name$<\/code> \u2013 Name of the active theme<\/li>\n<li><code>$wp-theme-version$<\/code> \u2013 Version number of the active theme<\/li>\n<li><code>$wp-theme-author$<\/code> \u2013 Author name of the active theme<\/li>\n<li><code>$wp-theme-author-link$<\/code> \u2013 Author link of the active theme<\/li>\n<\/ul>\n<h3>Shortcode Usage<\/h3>\n<p>The default shortcode <code>[humanstxt]<\/code> will display the contents of the virtual humans.txt file. URLs, email addresses and Twitter account names are converted into clickable links. Plain email addresses are encoded for spam protection. The output will be wrapped with a <code><\/p>\n<p><\/code> tag and can be styled via the <code>humanstxt<\/code> CSS class.<\/p>\n<p>You can turn off the \u201cclickable links\u201d functionality: <code>[humanstxt clickable=\"0\"]<\/code><\/p>\n<p>You can also toggle the clickable links individually: <code>[humanstxt urls=\"1\" emails=\"0\" twitter=\"1\"]<\/code><\/p>\n<p>To display the humans.txt as preformatted text, use the <code>pre<\/code> attribute: <code><\/p>\n<pre>[humanstxt pre=\"1\"]<\/pre>\n<p><\/code><\/p>\n<p>To display the untouched humans.txt, use the <code>plain<\/code> attribute: <code>[humanstxt plain=\"1\"]<\/code><\/p>\n<p>You can omit the wrapping with the <code><\/p>\n<p><\/code> tag: <code>[humanstxt wrap=\"0\"]<\/code><\/p>\n<p>You can set a CSS id for the wrapping <code><\/p>\n<p><\/code> tag: <code>[humanstxt id=\"my-humans-txt\"]<\/code><\/p>\n<p>You can turn off the encoding of email addresses and common text entities: <code>[humanstxt filter=\"0\"]<\/code><\/p>\n<h3>Useful Functions<\/h3>\n<p><strong>humanstxt()<\/strong><br \/>\nEchos the content of the virtual humans.txt file. Use <code>get_humanstxt()<\/code> to get the contents as a <em>string<\/em>.<\/p>\n<p><strong>is_humans()<\/strong><br \/>\nDetermines if the current request is for the virtual humans.txt file.<\/p>\n<h3>Pluggable Functions<\/h3>\n<p>All callback functions of the default variables can be overridden. The callback functions are located in <a href=\"https:\/\/plugins.trac.wordpress.org\/browser\/humanstxt\/trunk\/callbacks.php\" rel=\"nofollow ugc\">humanstxt\/callbacks.php<\/a>.<\/p>\n<h3>Plugin Constants<\/h3>\n<p><strong>HUMANSTXT_METABOX<\/strong><br \/>\nDefine as <code>false<\/code> to disable the \u201crate this plugin\u201d box on the options page.<\/p>\n<h3>Plugin Actions and Filters<\/h3>\n<h4>Actions<\/h4>\n<p><strong>do_humans<\/strong><br \/>\nRuns when the current request is for the <em>humans.txt<\/em> file, right after the <code>template_redirect<\/code> action.<\/p>\n<p><strong>do_humanstxt<\/strong><br \/>\nRuns right before the <em>humans.txt<\/em> is printed to the screen.<\/p>\n<h4>Filters<\/h4>\n<p><strong>humans_txt<\/strong><br \/>\nApplied to the final content of the virtual humans.txt file.<\/p>\n<p><strong>humans_authortag<\/strong><br \/>\nApplied to the author link tag.<\/p>\n<p><strong>humanstxt_content<\/strong><br \/>\nApplied to the humans.txt content. Applied prior to the <code>humans_txt<\/code> filter.<\/p>\n<p><strong>humanstxt_variables<\/strong><br \/>\nApplied to the array of content-variables. See <code>humanstxt_variables()<\/code> for details.<\/p>\n<p><strong>humanstxt_max_revisions<\/strong><br \/>\nApplied to the maximum number of stored revisions. If set to <code>0<\/code>, revisions will be disabled. Default is <code>50<\/code>.<\/p>\n<p><strong>humanstxt_shortcode_output<\/strong><br \/>\nApplied to the final <code>[humanstxt]<\/code> shortcode output.<\/p>\n<p><strong>humanstxt_shortcode_content<\/strong><br \/>\nApplied to the un-wrapped shortcode output.<\/p>\n<p><strong>humanstxt_shortcode_headline_replacement<\/strong><br \/>\nApplied to replacement string for matched standard headlines: <code>\/* Title *\/<\/code>. See <code>humanstxt_shortcode()<\/code> for details.<\/p>\n<p><strong>humanstxt_shortcode_twitter_replacement<\/strong><br \/>\nApplied to replacement string for matched twitter account names. See <code>humanstxt_shortcode()<\/code> for details.<\/p>\n<p><strong>humanstxt_separator<\/strong><br \/>\nApplied to the global text separator. Default is a comma followed by a space.<\/p>\n<p><strong>humanstxt_plugins_separator<\/strong><br \/>\nUse to override the global text separator (see <code>humanstxt_separator<\/code> filter) for the list of active WordPress plugins.<\/p>\n<p><strong>humanstxt_languages_separator<\/strong><br \/>\nUse to override the global text separator (see <code>humanstxt_separator<\/code> filter), for the current WordPress language(s).<\/p>\n<p><strong>humanstxt_postcount<\/strong><br \/>\nApplied to the number of published posts: <code>$wp-posts$<\/code>.<\/p>\n<p><strong>humanstxt_pagecount<\/strong><br \/>\nApplied to the number of published pages: <code>$wp-pages$<\/code>.<\/p>\n<p><strong>humanstxt_wptheme<\/strong><br \/>\nApplied to the summary of the active WordPress theme: <code>$wp-theme$<\/code>.<\/p>\n<p><strong>humanstxt_plugins<\/strong><br \/>\nApplied to the list of active WordPress plugins: <code>$wp-plugins$<\/code>.<\/p>\n<p><strong>humanstxt_languages<\/strong><br \/>\nApplied to current WordPress language(s): <code>$wp-language$<\/code>.<\/p>\n<p><strong>humanstxt_lastupdate<\/strong><br \/>\nApplied to returned date of the <code>$wp-lastupdate$<\/code> variable.<\/p>\n<p><strong>humanstxt_lastupdate_format<\/strong><br \/>\nApplied to the used date-format of the <code>$wp-lastupdate$<\/code> variable. Default is <code>Y\/m\/d<\/code>. Read more about <a href=\"https:\/\/codex.wordpress.org\/Formatting_Date_and_Time\" rel=\"nofollow ugc\">date and time formatting<\/a>.<\/p>\n<p><strong>humanstxt_authors<\/strong><br \/>\nApplied to the list of active authors: <code>$wp-authors$<\/code>.<\/p>\n<p><strong>humanstxt_authors_format<\/strong><br \/>\nApplied to the format used for the author list <code>$wp-authors$<\/code> variable. Please see <code>humanstxt_callback_wpauthors()<\/code> in <a href=\"https:\/\/plugins.trac.wordpress.org\/browser\/humanstxt\/trunk\/callbacks.php\" rel=\"nofollow ugc\">humanstxt\/callbacks.php<\/a> for details.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Credit the people behind your website in your humans.txt file. Easy to edit, directly within WordPress.<\/p>\n","protected":false},"author":65,"featured_media":290925,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Humans TXT - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Credit the people behind your website in your humans.txt file. Easy to edit, directly within WordPress."},"footnotes":""},"categories":[1],"tags":[20555,25706,25702,25707],"class_list":["post-87752","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-human","tag-humans","tag-humans-txt","tag-humanstxt"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/87752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=87752"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/87752\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/290925"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=87752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=87752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=87752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}