Skip to content

Instantly share code, notes, and snippets.

@mdibrahimk48
Created June 8, 2023 05:14
Show Gist options
  • Save mdibrahimk48/b0ae803a74704245ffd648024855d31a to your computer and use it in GitHub Desktop.
Save mdibrahimk48/b0ae803a74704245ffd648024855d31a to your computer and use it in GitHub Desktop.
Woo Product Table Custom Design Tab (Using Filter)
add_filter('wpt_design_tab_fields','wpt_custom_design_tab');
function wpt_custom_design_tab( $args ){
$args['body']['item'][] = [
'title' => 'Table Border Width',
'selector' => 'tbody tr td',
'property' => 'border-width',
'type' => 'text'
];
$args['body']['item'][] = [
'title' => 'Table Border Width',
'selector' => 'tbody tr td',
'property' => 'border-style',
'value' => 'solid',
'type' => 'text'
];
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment