WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Stealth Update

Adds the ability to update a post without having WordPress automatically update the post's post_modified timestamp.

Filters

The plugin is further customizable via two filters. Typically, these customizations would be put into your active theme's functions.php file, or used by another plugin.

c2c_stealth_update_meta_key (filter)

The 'c2c_stealth_update_meta_key' filter allows you to override the name of the custom field key used by the plugin to store a post's stealth update status. This isn't a common need.

Arguments:

  • $custom_field_key (string): The custom field key to be used by the plugin. By default this is '_stealth-update'.

Example:

add_filter( 'c2c_stealth_update_meta_key', 'override_stealth_update_key' );
function override_stealth_update_key( $custom_field_key ) {
    return '_my_custom_stealth-update';
}

c2c_stealth_update_default (filter)

The 'c2c_stealth_update_default' filter allows you to override the default state of the 'Stealth Update?' checkbox.

Arguments:

  • $state (boolean): The default state of the checkbox. By default this is false.
  • $post (WP_Post): The post currently being created/edited.

Example:

// Have the Stealth Update? checkbox checked by default.
add_filter( 'c2c_stealth_update_default', '__return_true' );

Requires: 3.6 or higher
Compatible up to: 3.8.3
Last Updated: 2014-1-24
Downloads: 2,552

Ratings

4 stars
4.5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.