Skip to content

Instantly share code, notes, and snippets.

@ibndawood
Last active February 2, 2022 19:35
Show Gist options
  • Save ibndawood/d3533bd209c5dd3a3c3e50af79126c02 to your computer and use it in GitHub Desktop.
Save ibndawood/d3533bd209c5dd3a3c3e50af79126c02 to your computer and use it in GitHub Desktop.
Electro - Always display attributes in Specifications tab
add_action( 'woocommerce_before_single_product', 'ec_child_modify_display_specs_attr' );
function ec_child_modify_display_specs_attr() {
global $post;
update_post_meta( $post->ID, '_specifications_display_attributes', 'yes' );
}
@ibndawood
Copy link
Author

Hello @drfranky1

I am sorry I do not what is the reason for the issue you've described. The code hook into woocommerce_before_single_product action which is executed in frontend only and not during import.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment