This action is documented in wp-admin/options-reading.php.


do_action( 'blog_privacy_selector' ); 

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.


To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'blog_privacy_selector' ); 
The following example is for adding a hook callback.
  1. // define the blog_privacy_selector callback 
  2. function action_blog_privacy_selector( ) { 
  3. // make action magic happen here... 
  4. }; 
  6. // add the action 
  7. add_action( 'blog_privacy_selector', 'action_blog_privacy_selector', 10, 0 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'blog_privacy_selector', 'action_blog_privacy_selector', 10, 0 ); 

Defined (2)

The action is defined in the following location(s).

  1. do_action( 'blog_privacy_selector' ); 
  1. do_action( 'blog_privacy_selector' );