Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new filter hook: directorist archive single listing url #1699

Merged

Conversation

MahfuzulAlam
Copy link
Collaborator

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Security fix
  • Improvement
  • New Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Text changes
  • Other... Please describe:

Description

How to reproduce the issue or how to test the changes

New filter hook added - directorist_archive_single_listing_url

Parameters:
$permalink - Url of the single listing
$listing_id - Single listing id
$location - Location of the link - thumbnail | title | excerpt

Any linked issues

Fixes #

Checklist

@@ -71,7 +71,7 @@
}


$link_start = '<a href="'.esc_url( $listings->loop['permalink'] ).'">';
$link_start = '<a href="'.esc_url( apply_filters( 'directorist_archive_single_listing_url', $listings->loop['permalink'], $listings->loop['id'], 'thumbnail' ) ).'">';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to apply in thumb list template too

@vairafiq vairafiq merged commit 02b6d8f into sovware:alpha Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants