Created
June 18, 2020 01:32
-
-
Save gaupoit/7c5b155b0d0faec966afd7dae22e1442 to your computer and use it in GitHub Desktop.
woocommerce_product_data_tabs filter usage
This file contains hidden or 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
<?php | |
add_filter('woocommerce_product_data_tabs', 'add_ppwp_access_link_tab'); | |
function add_ppwp_access_link_tab($tabs) { | |
$tabs['ppwp_woo'] = array( | |
'label' => 'PPWP Access Link', | |
'target' => 'ppwp_woo_options', | |
'class' => array( 'show_if_virtual' ), | |
'priority' => 65, | |
); | |
return $tabs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment