Skip to content

Commit

Permalink
Pulled
Browse files Browse the repository at this point in the history
  • Loading branch information
iamibrahimriaz committed Aug 3, 2024
2 parents 7c0b0a6 + b422fbf commit b68de4f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions includes/model/Listings.php
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,17 @@ public function get_current_listing_type() {
return directorist_get_default_directory();
}

public function get_directory_type_slug() {
$current_directory_type = $this->get_current_listing_type();

if ( is_numeric( $current_directory_type ) ) {
$term = get_term_by( 'id', $current_directory_type, ATBDP_TYPE) ;
$current_directory_type = $term->slug;
}

return $current_directory_type;
}

public function search_category_location_args() {
return array(
'parent' => 0,
Expand Down

0 comments on commit b68de4f

Please sign in to comment.