Usage
add_filter( 'attachment_icon', 'your_callback_function', 10, 2 );Filter Callback:
function your_callback_function( $icon, $post->ID ) {
// Your code here
return $icon;
}Parameters
$iconParameter 1
$post->IDParameter 2
🔄 Filter Hook
Filter hooks allow you to modify data before it is saved to the database or displayed on the screen. Filters must return a value.