Function Reference: geodir_add_to_favourite_link

Summary

Outputs the add to favourite line for the current post if not add listing preview page.

Global Values

$post
(object) (required) The current post object.

Default: None
$preview
(bool) (required) True if the current page is add listing preview page. False if not. since 1.

Default: None

Package

GeoDirectory

Source File

geodir_add_to_favourite_link() is located in geodirectory_hooks_actions.php [Line: 386]

Source Code

function geodir_add_to_favourite_link()
{
    global $post, $preview;
    if (!$preview && geodir_is_page('detail')) {
        ?>