开发者 | codeablepress |
---|---|
更新时间 | 2024年11月1日 03:34 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.6 |
版权: | GPL-3.0-or-later |
版权网址: | 版权信息 |
Yes! You can set the path with a simple filter.
Add the following code to your functions.php file to remove the profile picture above the WooCommerce My Account menu. remove_action('woocommerce_before_account_navigation', 'csfpp_display_avatar_with_name');
The avatar design is controlled by a template that can be placed in your theme folder. Copy the avatar.php file from the templates folder of the plugin and place it in yourtheme/templates/csfpp/avatar.php Open the template file in your themes folder and remove the text "rounded-full".
Yes. Simply navigate to their profile page in the admin area. Delete: Click the delete button that shows if the user has a custom profile (not gravatar). Upload: Click on the users profile photo, upload a photo with the media uploader, save the profile.
Yes, gravatar still works. If you'd like to disable it, you can use the following functions in your function.php file. Be sure to set a new default avatar after doing so in discussion.php // Disable Gravatars add_filter('get_avatar', function($avatar, $id_or_email, $size, $default, $alt) { return ''; }, 1, 5); // Remove Gravatar from Discussion Settings add_filter('avatar_defaults', function($avatar_defaults) { unset($avatar_defaults['mystery']); unset($avatar_defaults['blank']); unset($avatar_defaults['gravatar_default']); return $avatar_defaults; }); // Hide the Avatar Settings Section add_action('admin_init', function() { remove_action('admin_init', 'avatar_settings_init'); });
The default size for avatars in this plugin is based on your WordPress settings for thumbnail size. You can easily change this by following these steps: