Created
June 8, 2023 05:14
-
-
Save mdibrahimk48/b0ae803a74704245ffd648024855d31a to your computer and use it in GitHub Desktop.
Woo Product Table Custom Design Tab (Using Filter)
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('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