Skip to content

Instantly share code, notes, and snippets.

@MarkKevin08
Created February 13, 2021 06:30
Show Gist options
  • Save MarkKevin08/570d27d381be8612be69e4e9ad3323a9 to your computer and use it in GitHub Desktop.
Save MarkKevin08/570d27d381be8612be69e4e9ad3323a9 to your computer and use it in GitHub Desktop.
Re-orders the policy tab contents
add_filter( 'wcv_product_policy_tab_content_args', 'change_policy_order');
function change_policy_order($post){
$new_policies = array();
$new_policies['shipping'] = $post['shipping'];
$new_policies['return'] = $post['return'];
$new_policies['terms'] = $post['terms'];
$new_policies['privacy'] = $post['privacy'];
return $new_policies;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment