Skip to main content

fc_pro_before_order_details_subsection_{subsection_id}

Type: Action

Fires before the contents of an order details subsection.

The dynamic portion of the hook name, $subsection_id, is the order details subsection ID. Possible hook names include:

  • fc_pro_before_order_details_subsection_downloads
  • fc_pro_before_order_details_subsection_order_notes

Signature​

do_action( 'fc_pro_before_order_details_subsection_{subsection_id}', $subsection_id );

Parameters​

NameTypeDescription
$subsection_idstringSubsection ID.

Since​

  • 1.3.0

Source: inc/order-details.php

Examples​

In fc_pro_before_order_details_subsection_{subsection_id}, order_notes replaces {subsection_id}.

add_action( 'fc_pro_before_order_details_subsection_order_notes',
/**
* Add instructions before order notes subsection.
*
* @param string $subsection_id Subsection ID.
*/
function( $subsection_id ) {
echo '<div class="order-notes-instructions">';
echo '<p>' . esc_html__( 'Add any special instructions or comments about your order below:', 'text-domain' ) . '</p>';
echo '</div>';
},
10
);