Skip to main content

fc_pro_order_received_sidebar_sections

Type: Action

Fires when outputting the order received sidebar sections.

Signature​

do_action( 'fc_pro_order_received_sidebar_sections', $order_id );

Parameters​

NameTypeDescription
$order_idintOrder ID.

Since​

  • 1.3.0

Source: inc/order-received-page.php

Examples​

add_action( 'fc_pro_order_received_sidebar_sections',
/**
* Add customer support widget to order received sidebar.
*
* @param int $order_id Order ID.
*/
function( $order_id ) {
echo '<div class="order-received-support-widget">';
echo '<h3>' . esc_html__( 'Need Help?', 'text-domain' ) . '</h3>';
echo '<p>' . esc_html__( 'Contact us:
[email protected]
', 'text-domain' ) . '</p>';
echo '</div>';
},
20
);