Back to list of all filter and action hooks for Fluid Checkout Lite.
Description #
Modifies the home URL for the checkout header logo link.
This filter is triggered:
- When using Fluid Checkout’s custom logo setting (
fc_checkout_logo_imageoption). - When falling back to site name (when no custom logo is set and no custom action is hooked to
fc_checkout_header_logo).
This filter is NOT triggered:
- When using WordPress’s native custom logo functionality
the_custom_logo()– this happens when the theme has a custom logo set in the WordPress Customizer. - When a custom action is hooked to
fc_checkout_header_logo.
If you need to modify the home URL when using WordPress’s native custom logo, you would need to either use Fluid Checkout’s logo setting instead or hook into the fc_checkout_header_logo action to override the logo displayed.
Parameters #
$home_url(string) The home URL for the logo link. Defaults tohome_url( '/' ).
Examples #
/**
* Customize header logo home URL
*/
function customize_header_logo_home_url( $home_url ) {
return home_url( '/custom-landing-page/' );
}
add_filter( 'fc_checkout_header_logo_home_url', 'customize_header_logo_home_url', 10 );
