blog_privacy_selector WordPress Action Hook
The blog_privacy_selector hook allows you to add a privacy selector to the WordPress admin interface. This selector allows you to choose whether to make your blog public or private.
do_action( 'blog_privacy_selector' ) #
Enable the legacy ‘Site visibility’ privacy options.
Description
By default the privacy options form displays a single checkbox to ‘discourage’ search engines from indexing the site. Hooking to this action serves a dual purpose:
- Disable the single checkbox in favor of a multiple-choice list of radio buttons.
- Open the door to adding additional radio button choices to the list.
Hooking to this action also converts the ‘Search engine visibility’ heading to the more open-ended ‘Site visibility’ heading.
Source
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |