To create a custom WordPress plugin called “ChatGPT Icon Insert” that inserts an image called “fofoo.png” from the media library to the start of every blog post, you can use the following code:

1. Create a new folder in the "wp-content/plugins" directory and name it "chatgpt-icon-insert."

2. Inside the folder, create a new PHP file and name it "chatgpt-icon-insert.php."

3. Add the following code at the top of the PHP file:

<?php
/*
Plugin Name: ChatGPT Icon Insert
Description: Inserts an image from the media library to the start of every blog post.
Version: 1.0
Author: Your Name
*/

4. Next, use the "add_filter" function to hook into the "the_content" filter and modify the content of the blog post:

function insert_icon_to_content($content) {
	// Get the URL of the "foo.png" image from the media library
	$icon_url = wp_get_attachment_url(123); // Replace "123" with the actual ID of the image in the media library
	
	// Insert the image at the start of the content
	$content = '<img src="' . $icon_url . '" alt="icon">' . $content;
	
	return $content;
}
add_filter( 'the_content', 'insert_icon_to_content' );

5. Save the plugin file and activate the plugin from the WordPress admin dashboard. The "fofoo.png" image should now be inserted at the start of every blog post.