Function Reference: geodir_social_sharing_buttons

Summary

Outputs social buttons.

Description

Outputs social sharing buttons twitter,facebook and google plus 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_social_sharing_buttons’ [Line: 416]

‘geodir_after_social_sharing_buttons’ [Line: 432]

Filters

‘geodir_social_sharing_buttons_html’ [Line: 442]

Source File

geodir_social_sharing_buttons() is located in geodirectory_hooks_actions.php [Line: 407]

Source Code

function geodir_social_sharing_buttons()
{
    global $preview;
    ob_start(); // Start  buffering;
    /**
     * This action is called before the social buttons twitter,facebook and google plus are output in a containing div.
     *
     * @since 1.0.0
     */
    do_action('geodir_before_social_sharing_buttons');
    if (!$preview) {
        ?>
        
' . $content_html . '
'; if ((int)get_option('geodir_disable_tfg_buttons_section') != 1) { /** * Filter the geodir_social_sharing_buttons() function content. * * @param string $content_html The output html of the geodir_social_sharing_buttons() function. */ echo $content_html = apply_filters('geodir_social_sharing_buttons_html', $content_html); } }