WordPress开发者和主题制作者的搜索引擎



blog_privacy_selector ›

Since2.1.0
已弃用n/a
do_action( 'blog_privacy_selector' )
定义在:
文档:

Enable the legacy 'Site Visibility' privacy options.

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.





源码

do_action( 'blog_privacy_selector' );