Back to list of all filter and action hooks for Fluid Checkout PRO.
Description #
This filter controls the hook and priority for the Order Actions section (e.g., “Order again” button) on the view order page. Note: Despite the filter name, this controls Order Actions, not the order overview section.
Parameters #
$priority(array) Array with 3 elements:array( 'hook_name', 'callback', priority_number )[0](string) – Hook name (controls WHERE on page it displays)[1](array) – Callback function (do not modify)[2](int) – Priority number (controls WHEN relative to other elements on same hook)
Important: To move the section to a different location, change the hook name ($priority[0]). Changing only the priority number has no visual effect if it’s the only element on that hook.
Example #
/**
* Move Order Actions to after all order sections
*/
function move_order_actions_position( $priority ) {
// Only modify when "inside_order_overview" position is selected
if ( 'fc_pro_order_overview_after' === $priority[0] ) {
$priority[0] = 'woocommerce_view_order'; // Change location
$priority[2] = 65; // Adjust priority
}
return $priority;
}
add_filter( 'fc_pro_view_order_section_hook_priority_order_overview', 'move_order_actions_position', 10, 1 );
