{"id":167434,"date":"2010-09-08T08:00:00","date_gmt":"2010-09-08T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/stealth-update\/"},"modified":"2016-04-14T06:30:00","modified_gmt":"2016-04-14T06:30:00","slug":"stealth-update","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/stealth-update\/","title":{"rendered":"Stealth Update"},"content":{"rendered":"<p>This plugin allows you to choose to update a post without having WordPress automatically update the post\u2019s post_modified timestamp.<\/p>\n<p>WordPress maintains a post field called post_modified which tracks the date the post was last edited. This value is used by feeds to indicate the latest update to each post or to report the latest updated post. Plugins and themes may also reference the post modification date to call attention to posts that have been updated. However, if an update is such that you don\u2019t want it to be recorded in the post_modified date field (perhaps due to the update being a small formatting\/editing change or fixing a typo, or if you just want to keep quiet about an update), then this plugin is for you.<\/p>\n<p>This plugin adds a \u201cStealth update?\u201d checkbox to the \u201cPublish\u201d box of any post\u2019s or page\u2019s \u201cEdit Post\u201d admin page.<\/p>\n<p>Note: The plugin records when a post is stealth updated, so subsequent edits of the post will have the \u201cStealth update?\u201d checkbox checked by default.<\/p>\n<p>Links: <a href=\"http:\/\/coffee2code.com\/wp-plugins\/stealth-update\/\" rel=\"nofollow ugc\">Plugin Homepage<\/a> | <a href=\"https:\/\/wordpress.org\/plugins\/stealth-update\/\" rel=\"ugc\">Plugin Directory Page<\/a> | <a href=\"http:\/\/coffee2code.com\" rel=\"nofollow ugc\">Author Homepage<\/a><\/p>\n<h3>Filters<\/h3>\n<p>The plugin is further customizable via two filters. Typically, these customizations would be put into your active theme\u2019s functions.php file, or used by another plugin.<\/p>\n<h4>c2c_stealth_update_meta_key (filter)<\/h4>\n<p>The \u2018c2c_stealth_update_meta_key\u2019 filter allows you to override the name of the custom field key used by the plugin to store a post\u2019s stealth update status. This isn\u2019t a common need.<\/p>\n<p>Arguments:<\/p>\n<ul>\n<li>$custom_field_key (string): The custom field key to be used by the plugin. By default this is \u2018_stealth-update\u2019.<\/li>\n<\/ul>\n<p>Example:<\/p>\n<pre><code>\/**\n * Defines a custom meta key to be used by Stealth Update.\n *\n * @param string $custom_field_key The default custom field key name.\n * @return string\n *\/\nfunction override_stealth_update_key( $custom_field_key ) {\n    return '_my_custom_stealth-update';\n}\nadd_filter( 'c2c_stealth_update_meta_key', 'override_stealth_update_key' );\n<\/code><\/pre>\n<h4>c2c_stealth_update_default (filter)<\/h4>\n<p>The \u2018c2c_stealth_update_default\u2019 filter allows you to override the default state of the \u2018Stealth Update?\u2019 checkbox.<\/p>\n<p>Arguments:<\/p>\n<ul>\n<li>$state (boolean): The default state of the checkbox. By default this is false.<\/li>\n<li>$post (WP_Post): The post currently being created\/edited.<\/li>\n<\/ul>\n<p>Example:<\/p>\n<pre><code>\/\/ Have the Stealth Update? checkbox checked by default.\nadd_filter( 'c2c_stealth_update_default', '__return_true' );\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Adds the ability to update a post without having WordPress automatically update the post's post_modified timestamp.<\/p>\n","protected":false},"author":65,"featured_media":351019,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Stealth Update - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Adds the ability to update a post without having WordPress automatically update the post's post_modified timestamp."},"footnotes":""},"categories":[1],"tags":[10570,71,42957,2003,1507],"class_list":["post-167434","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-latest","tag-post","tag-post_modified","tag-publish","tag-update"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/167434","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=167434"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/167434\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/351019"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=167434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=167434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=167434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}