is there a way to define the source for attachment tab_image ?
A filter for that would be nice to have. ( for icon_select is image_top )
in the meantime i work with child-theme ALB Element and changed line 593
$src = wp_get_attachment_image_src( $atts['tab_image'], 'square' );
Hey Guenter,
Sorry for the late reply.
I added filter ‘avf_tab_subsection_image_size’ (see line 599) for release 5.9.10:
Hope this is what you need.
Best regards,
Günter
I think that a filter is always the cleanest solution for customization!
hab die 5.6.10 drauf, und Problem ist behoben – danke dafür
we now have:
$img_size = apply_filters( 'avf_tab_subsection_image_size', 'square', $atts );
$src = wp_get_attachment_image_src( $atts['tab_image'], 'square' );
but does the src not hamper the usage of the add_filter ? ;)
we should have :
$src = wp_get_attachment_image_src( $atts['tab_image'], $img_size );
no effect on using:
function change_tab_image_size() {
return "portfolio_small";
}
add_filter('avf_tab_subsection_image_size','change_tab_image_size', 10);