Enables 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.
N/A
Sortie :
// Ajouter une fonction au hook action 'blog_privacy_selector'
add_action('blog_privacy_selector', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee() {
// Votre code ici
error_log('Hook blog_privacy_selector déclenché');
}
Chargement des actualités...