@maycal
What are you using currently to output the image?
Thread Starter
maycal
(@maycal)
LSM LearnPress showing the image profile.
@maycal
I have an outdated version of LearnPress, so hopefully this information is still valid.
TLDR: You may have to contact LearnPress about this.
LearnPress, from a programmatic standpoint, doesn’t have much flexibility in retrieving a custom size of profile picture.
The function get_profile_picture
is read with no filterable values from what I can tell scouring the codebase.
This will require some changes from the developers of LearnPress to add and document this extra functionality.
There is an option in the LearnPress settings under Profile where you can change the Avatar size. In my tests, I didn’t notice a difference, but perhaps you will have better luck? It’s under LearnPress->Settings->Profile->Avatar Dimensions.
I’m sorry I wasn’t able to help.
Ronald
Thread Starter
maycal
(@maycal)
Earlier I used “Simple Local Avatar Plugin”
And this hook
add_filter( 'pre_get_avatar_data', function( $args ) {
$args['size'] = 'full';
return $args;
}, 5 );
worked! The image became large and clear in LearnPress profile.
I’d like to get similar hook for User Profile Picture plugin, could you help me?