Back to list of all filter and action hooks for Fluid Checkout Lite.
Description #
Fires to output the site logo in the distraction-free checkout header.
This hook is called as a fallback option to get the site logo image in this order:
- Use logo image from the plugin settings
- This hook
fc_checkout_header_logo - Use the logo image from WordPress settings
- Show site name in text format.
Examples #
/**
* Add custom header logo
*/
function add_custom_header_logo() {
$home_url = apply_filters( 'fc_checkout_header_logo_home_url', home_url( '/' ) );
echo sprintf(
'<a href="%s" class="custom-logo-link" rel="home">%s</a>',
esc_url( $home_url ),
'<img src="custom-logo.png" alt="Custom Logo" class="header-logo">'
);
}
add_action( 'fc_checkout_header_logo', 'add_custom_header_logo', 10 );
