update_{$meta_type}_meta

update_{$meta_type}_meta

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

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

  • /wp-includes/meta.php line 290
    		 * @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 941
    		$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 );
    		}