updated_postmeta

updated_postmeta

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('updated_postmeta') is found 2 times:

  • /wp-includes/meta.php line 350
    			 * @param string $meta_key   Metadata key.
    			 * @param mixed  $meta_value Metadata value. This will be a PHP-serialized string representation of the value
    			 *                           if the value is an array, an object, or itself a PHP-serialized string.
    			 */
    			do_action( 'updated_postmeta', $meta_id, $object_id, $meta_key, $meta_value );
    		}
    	}
    
    	return true;
    }
    
    
  • /wp-includes/meta.php line 963
    		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 );
    		}
    
    		return true;
    	}
    
    	// And if the meta was not found.