default_{$meta_type}_metadata

default_{$meta_type}_metadata

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

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

  • /wp-includes/meta.php line 717
    	 * @param bool   $single    Whether to return only the first value of the specified `$meta_key`.
    	 * @param string $meta_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user',
    	 *                          or any other object type with an associated meta table.
    	 */
    	$value = apply_filters( "default_{$meta_type}_metadata", $value, $object_id, $meta_key, $single, $meta_type );
    
    	if ( ! $single && ! wp_is_numeric_array( $value ) ) {
    		$value = array( $value );
    	}
    
    	return $value;