epl_sd_author_tab_image_size: Staff Directory photo size for the agent

Description #

Changes the image size used for a staff member's photo when the Staff Directory add-on shows it in place of the Gravatar. The default comes from the Staff Directory setting Image Size (thumbnail unless you changed it).

Staff Directory uses it in the author box. Since EPL 3.6 the Elementor Agent Box and Agent Photo widgets use it too, when the agent has a staff directory entry and the Staff Directory Image Type setting is Use Staff Directory Image.


Usage #

add_filter( 'epl_sd_author_tab_image_size', 'my_sd_author_tab_image_size' );

Parameters #

$size (string)
A registered image size name, such as thumbnail, medium or large. Default: the Staff Directory Image Size setting, or thumbnail.


Examples #

function my_sd_author_tab_image_size( $size ) {
	return 'medium';
}
add_filter( 'epl_sd_author_tab_image_size', 'my_sd_author_tab_image_size' );


Source #

lib/page-builders/elementor/class-epl-elementor.php, in EPL_Elementor::get_agent_image() (EPL 3.6), and in the Staff Directory add-on, includes/class-epl-sd-author-box.php (Staff Directory 3.0).