add_{$meta_type}_metadata

add_{$meta_type}_metadata

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('add_{$meta_type}_metadata') is found 1 times:

  • /wp-includes/meta.php line 80
    	 * @param string    $meta_key   Metadata key.
    	 * @param mixed     $meta_value Metadata value. Must be serializable if non-scalar.
    	 * @param bool      $unique     Whether the specified meta key should be unique for the object.
    	 */
    	$check = apply_filters( "add_{$meta_type}_metadata", null, $object_id, $meta_key, $meta_value, $unique );
    	if ( null !== $check ) {
    		return $check;
    	}
    
    	if ( $unique && $wpdb->get_var(
    		$wpdb->prepare(