soderlind/mu-disable-gravatar

MU Disable Gravatar

Installs: 1 131

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:wordpress-muplugin

1.0.0 2022-07-06 13:58 UTC

This package is auto-updated.

Last update: 2024-04-06 18:17:21 UTC


README

WordPress Must-use Plugin that disables Gravatar.

The plugin is simple and use the following hooks:

add_filter( 'pre_get_avatar', '__return_empty_string' );
add_filter( 'get_avatar', '__return_empty_string' );

pre_get_avatar: Short circuit the Gravatar request. I.e. Stop the request to Gravatar.com.

get_avatar: Set the new avatar to an empty string.