Fires immediately after updating metadata of a specific type. The dynamic portion of the hook name, `$meta_type`, refers to the meta object type (blog, post, comment, term, user, or any other type with an associated meta table). Possible hook names include: - `updated_blog_meta` - `updated_post_meta` - `updated_comment_meta` - `updated_term_meta` - `updated_user_meta`
$meta_id, $object_id, $meta_key, $_meta_value
Sortie :
@param int $meta_id ID of updated metadata entry. @param int $object_id ID of the object metadata is for. @param string $meta_key Metadata key. @param mixed $_meta_value Metadata value.
// Ajouter une fonction au hook action 'updated_{$meta_type}_meta'
add_action('updated_{$meta_type}_meta', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($meta_id, $object_id, $meta_key, $_meta_value) {
// Votre code ici
error_log('Hook updated_{$meta_type}_meta déclenché');
}
Chargement des actualités...