Created
February 13, 2021 06:30
-
-
Save MarkKevin08/570d27d381be8612be69e4e9ad3323a9 to your computer and use it in GitHub Desktop.
Re-orders the policy tab contents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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