Created
July 3, 2021 05:06
-
-
Save digitalchild/3b1158add8c7324e7af99947db631b55 to your computer and use it in GitHub Desktop.
Override the WC Vendors Pro Dashboard open partial
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
<?php | |
// This will assume you have created a directory in your theme called wc-vendors/partials/ | |
// Then added the override file here. | |
add_filter( 'wcvendors_pro_dashboard_open_path', 'wcv_override_dashboard_open_path' ); | |
function wcv_override_dashboard_open_path( $path ){ | |
$path = get_stylesheet_directory(). '/wc-vendors/partials/wcvendors-pro-dashboard-open.php'; | |
return $path; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can override any template partial as long as you have the partial override located within your theme.
This will override the product table actions partial.