Function Reference: geodir_share_this_button

Summary

Outputs the share this button.

Description

Outputs the share this button html into a containing div if not on the add listing preview page.

Global Values

$preview
(bool) (required) True if the current page is add listing preview page. False if not.

Default: None

Package

GeoDirectory

Change Log

Since: 1.0.0

Actions

‘geodir_before_share_this_button’ [Line: 456]

‘geodir_after_share_this_button’ [Line: 469]

Filters

‘geodir_share_this_button_html’ [Line: 480]

Source File

geodir_share_this_button() is located in geodirectory_hooks_actions.php [Line: 447]

Source Code

function geodir_share_this_button()
{
    global $preview;
    ob_start(); // Start buffering;
    /**
     * This is called before the share this html in the function geodir_share_this_button()
     *
     * @since 1.0.0
     */
    do_action('geodir_before_share_this_button');
    if (!$preview) {
        ?>
        
    ' . $content_html . '
'; if ((int)get_option('geodir_disable_sharethis_button_section') != 1) { /** * Filter the geodir_share_this_button() function content. * * @param string $content_html The output html of the geodir_share_this_button() function. * @since 1.0.0 */ echo $content_html = apply_filters('geodir_share_this_button_html', $content_html); } }