Fires after a post submitted by email is published.
$post_ID
Sortie :
@param int $post_ID The post ID.
// 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é');
}
Chargement des actualités...