site_icon_attachment_metadata filter-hookWP 4.3.0

Filters the site icon attachment metadata.

Usage

add_filter( 'site_icon_attachment_metadata', 'wp_kama_site_icon_attachment_metadata_filter' );

/**
 * Function for `site_icon_attachment_metadata` filter-hook.
 * 
 * @param array $metadata Attachment metadata.
 *
 * @return array
 */
function wp_kama_site_icon_attachment_metadata_filter( $metadata ){

	// filter...
	return $metadata;
}
$metadata(array)
Attachment metadata.

Changelog

Since 4.3.0 Introduced.

Where the hook is called

WP_Site_Icon::insert_attachment()
site_icon_attachment_metadata
wp-admin/includes/class-wp-site-icon.php 128
$metadata = apply_filters( 'site_icon_attachment_metadata', $metadata );

Where the hook is used in WordPress

Usage not found.