Home / Override Partial Path
Duplicate Snippet

Embed Snippet on Your Site

Override Partial Path

You will need to create a folder in your themes folder for the partials to be located. In this example the partials are located in /wc-vendors/partials/

Code Preview
php
<?php
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; 
}

Comments

Add a Comment