WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Silent Publish

Adds the ability to publish a post without triggering pingbacks, trackbacks, or notifying update services.

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_silent_publish_meta_key (filter)

The 'c2c_silent_publish_meta_key' filter allows you to override the name of the custom field key used by the plugin to store a post's silent publish 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 '_silent-publish'.

Example:

add_filter( 'c2c_silent_publish_meta_key', 'override_silent_publish_key' );
function override_silent_publish_key( $custom_field_key ) {
    return '_my_custom_silent-publish';
}

c2c_silent_publish_default (filter)

The 'c2c_silent_publish_default' filter allows you to override the default state of the 'Silent Publish?' 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 Silent Publish? checkbox checked by default.
add_filter( 'c2c_silent_publish_default', '__return_true' );

Requires: 3.6 or higher
Compatible up to: 3.8.3
Last Updated: 2013-1-4
Downloads: 1,800

Ratings

4 stars
4 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.