How to set a custom placeholder image for team members

Suppose you want to set a custom placeholder image for your team members that have no member image. With the following code, you can do it easily. If you check the code, you will see there is a filter hook (sptp_member_placeholder_image_src) available in the plugin which allows you to modify the plugin’s functionality. You just need to copy and paste the URL of that placeholder image into the code after uploading it to your WordPress site.

Simply add the custom code to your current theme’s functions.php file.

function sptp_member_custom_placeholder_image_src(){
    // your-place-holder-image-url 
    return 'http://wp-team-pro.local/wp-content/uploads/2022/01/Demo-team-member-1.jpg';
add_filter( 'sptp_member_placeholder_image_src', 'sptp_member_custom_placeholder_image_src' );