Back to list of all filter and action hooks for Fluid Checkout Lite.
Description #
Modifies the image URL for design template options in the admin settings.
Parameters #
$image_url
(string) The image URL for the design template option.$template_key
(string) The design template option key.
Examples #
/**
* Customize design template option images
*/
function customize_design_template_images( $image_url, $template_key ) {
if ( 'classic' === $template_key ) {
return get_template_directory_uri() . '/images/custom-classic.png';
}
return $image_url;
}
add_filter( 'fc_design_template_option_image_url', 'customize_design_template_images', 10, 2 );