

==Description==

The <b>"gwolle_gb_addon_mail_moderators_on_upload_media_body"</b> filter is used to set the body for the media upload notification email.

You can use this filter as:

<code><?php add_filter( 'gwolle_gb_addon_mail_moderators_on_upload_media_body', 'filter_function_name' ) ?></code>

Where 'filter_function_name' is the function WordPress should call when the filter is being used.

'''filter_function_name''' should be a unique function name. It cannot match any other function name already declared.


==Examples==


function my_gwolle_gb_addon_mail_moderators_on_upload_media_body( $mail_body, $attachment_id, $attachment_src_large ) {
	// this is the default;
	$body = esc_html__("
Hello,

An image has been uploaded into the Media Library at %blog_name%.

Media Library: %media_library%.
Image file: %attachment_src_large%.
Attachment ID: %attachment_id%.

Have a nice day.
Your Gwolle-GB-Mailer


Website address: %blog_url%
User name: %user_name%
User email: %user_email%
User IP address: %author_ip%
"
, 'gwolle-gb');

	return $body;
}
add_filter( 'gwolle_gb_addon_mail_moderators_on_upload_media_body', 'my_gwolle_gb_addon_mail_moderators_on_upload_media_body', 10 ,3 );

