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:

  1. Disable the single checkbox in favor of a multiple-choice list of radio buttons.
  2. 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.


Top ↑

Source

File: wp-admin/options-reading.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.