updated_{$meta_type}_meta

updated_{$meta_type}_meta

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('updated_{$meta_type}_meta') is found 2 times:

  • /wp-includes/meta.php line 336
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    * @param int    $object_id   ID of the object metadata is for.
     * @param string $meta_key    Metadata key.
     * @param mixed  $_meta_value Metadata value.
     */
    do_action( "updated_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $_meta_value );
     
    if ( 'post' === $meta_type ) {
        /**
         * Fires immediately after updating a post's metadata.
         *
         * @since 2.9.0
  • /wp-includes/meta.php line 959
    955
    956
    957
    958
    959
    960
    961
    962
    963
    964
    // Clear the caches.
    wp_cache_delete( $object_id, $meta_type . '_meta' );
     
    /** This action is documented in wp-includes/meta.php */
    do_action( "updated_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $_meta_value );
     
    if ( 'post' === $meta_type ) {
        /** This action is documented in wp-includes/meta.php */
        do_action( 'updated_postmeta', $meta_id, $object_id, $meta_key, $meta_value );
    }

See this hook used in plugins: