开发者 | coffee2code |
---|---|
更新时间 | 2020年2月14日 15:56 |
捐献地址: | 去捐款 |
PHP版本: | 4.6 及以上 |
WordPress版本: | 5.3 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
silent-publish.zip
inside the plugins directory for your site (typically wp-content/plugins/
)
Perhaps for a particular post you don't want any external notifications sent out. If checked when the post is published, that post will not trigger the pingbacks, trackbacks, and update service notifications that might typically occur.
Yes. See the Filters section (under Other Notes) and look for the example using the 'c2c_silent_publish_default' filter. You'll have to put that code into your active theme's functions.php file or a mu-plugin file.
If the "Silent publish?" checkbox had been checked at the time a post is published, the field will be shown but will disabled for that published post. Once a post is published, changing the value of the checkbox has no meaning, so there is no need to make it checkable. If you unpublish the post, the checkbox will again be clickable.
If the "Silent publish?" checkbox had not been checked at the time a post is published, the field will no longer be shown for that published post. Once a post is published, changing the value of the checkbox has no meaning, so there is no need to show it. If you unpublish the post, the checkbox will reappear.
Yes. You must first unpublish the post (by making it a draft or pending). Then uncheck the "Publish silently?" checkbox and republish the post. However, it's a bit moot at that point; once a post has been published without having silent publish enabled for it then pingbacks, trackbacks, and other notifications about the post being published have already been sent.
No.
No. your posts will continue to be shared to social media sites upon publication (assuming it is configured to do so by whatever plugins you have in place to share your posts).
Yes.
add_to_quick_edit()
admin_enqueue_scripts()
is_silent_published()
to determine if silent publish is activated for a postis_silent_publish_on_by_default()
to solely reflect the default state of silent publish for new postsget_post_types()
for retrieving post typesc2c_silent_publish_post_types
to filter post typesadd_ui()
into new output_field()
create_post()
is_silent_publish_on_by_default()
to determine if silent publish should be enabled for posts by defaultregister_meta()
and properly register the existence of the post meta fieldis_silent_publish_on_by_default()
before attempting to use itdo_init()
into init()
apply_filters_deprecated()
to formally deprecate the 'silent_publish_meta_key' filterdo_action()
instead of apply_filters()