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

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

  • /wp-includes/meta.php line 336
    		 * @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
    		// 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: