WordPress.org

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:

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

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: 4.3
Last Updated: 2015-8-9
Active Installs: 300+

Ratings

5 out of 5 stars

Support

1 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

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