update_{$meta_type}_meta

update_{$meta_type}_meta

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

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

  • /wp-includes/meta.php line 290
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    * @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( "update_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $_meta_value );
     
    if ( 'post' === $meta_type ) {
        /**
         * Fires immediately before updating a post's metadata.
         *
         * @since 2.9.0
  • /wp-includes/meta.php line 942
    938
    939
    940
    941
    942
    943
    944
    945
    946
    947
    $where               = array();
    $where[ $id_column ] = $meta_id;
     
    /** This action is documented in wp-includes/meta.php */
    do_action( "update_{$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( 'update_postmeta', $meta_id, $object_id, $meta_key, $meta_value );
    }