Thanks for your reply Mika.
I put pretty much all my codes in an mu plugin.
This code works, and sets up the avatar ready to be selected, however, I would like my new default avatar to display as soon as users sign up. Also, I will be using a plugin that allows users to also upload a local avatar, this is in the user>profile in the admin area, so I will be removing the whole, unneeded avatar table in settings>discussions to avoid users getting confused「(°ヘ°).
So I am looking for a code that is rather the direct replacement for the mystery man avatar. So when a user first signs up, or they remove there own uploaded local avatar, it will go back to my custom avatar, not the mysteryman.
I have just found these codes that is more what I am looking for, but it only works for buddypress:
define ( 'BP_AVATAR_DEFAULT', 'https://mysite.com/wp-content/folder/image.jpg' );
I think that is a wp-config code, for the direct replacement of the buddypress mystery man.
and:
function myavatar_add_default_avatar( $url ){
return ('https://mysitite.com/path-to-default-avatar');
}
add_filter( 'bp_core_mysteryman_src', 'myavatar_add_default_avatar' );
I think the ‘bp_core_mysteryman_src’ will also be the direct replacement for the buddypress mystery man.
Is there a wordpress equivalant for the following:
Filter hook: ‘bp_core_mysteryman_src’
and
wp-config name: ‘BP_AVATAR_DEFAULT’
I will then give those two codes a try to see if it works.