publish_phone

ACTION wp-mail.php (ligne 254) github
Fires after a post submitted by email is published.

Paramètres

Entrée :
$post_ID
Sortie :
@param int $post_ID The post ID.

Utilisation

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

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

Actualités

Chargement des actualités...