relevanssi_get_permalink( int|WP_Post $post )
This function returns the permalink for the current post within the Loop.
Source: /lib/utils.php
Parameters
$post
(int | WP_Post) The post ID or the post object. The default value is the global $post
.
Returns
(string|false) The permalink URL or false if the post does not exist.
Usage
This function returns the permalink for the current post. This function calls get_permalink()
to get the permalink and then applies the relevanssi_permalink
filter hook to add Relevanssi features to the link.
These features include the extra parameter needed for in-document highlighting and click tracking.