do_robotstxt

ACTION wp-includes\functions.php (ligne 1716) github
Fires when displaying the robots.txt file.

Paramètres

Entrée :
N/A
Sortie :
N/A

Utilisation

// Ajouter une fonction au hook action 'do_robotstxt'
add_action('do_robotstxt', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee() {
    // Votre code ici
    error_log('Hook do_robotstxt déclenché');
}

Actualités

Chargement des actualités...