Skip to main content

fc_checkout_header_logo

Type: Action

Fires where the checkout header logo is rendered.

Signature​

do_action( 'fc_checkout_header_logo' );

Parameters​

This hook does not pass any parameters.

Since​

  • 1.2.0

Source: templates/fc/checkout-page-template/checkout/checkout-header.php

Examples​

add_action( 'fc_checkout_header_logo',
/**
* Add custom header logo.
*/
function() {
$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">'
);
},
10
);