Change the file path on get_template_part via plugin

Well, I handle this issue by adding some code above get_template_part() function in theme as:

//Theme
/* If any filter set */

if(has_filter('ppr_one_search_item_view'){

     $themePartSlug = apply_filters('ppr_one_search_item_view');
 }
 else{
       $themePartSlug = 'templates/search/place';
 }      
 get_template_part($themePartSlug);

in my plugin:

/* Plugin Code */
function get_template_part_place(){

    // Template file from plugin Directory 

    load_template(PPR1_PLUGIN_PATH.'templates/search_places.php');
}
add_filter( 'ppr_one_search_item_view', 'get_template_part_place');
/* plugin Code End*/

may this will help you

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)