Function Reference: geodir_detail_page_more_info

Summary

This outputs the info section of the details page.

Description

This outputs the info section of the details page which includes all the post custom fields.

Package

GeoDirectory

Change Log

Since: 1.0.0

Actions

‘geodir_before_detail_page_more_info’ [Line: 1197]

‘geodir_after_detail_page_more_info’ [Line: 1206]

Filters

‘geodir_detail_page_more_info_html’ [Line: 1218]

Source File

geodir_detail_page_more_info() is located in geodirectory_hooks_actions.php [Line: 1189]

Source Code

function geodir_detail_page_more_info()
{
    ob_start(); // Start  buffering;
    /**
     * This is called before the info section html.
     *
     * @since 1.0.0
     */
    do_action('geodir_before_detail_page_more_info');
    if ($geodir_post_detail_fields = geodir_show_listing_info('detail')) {
        echo $geodir_post_detail_fields;
    }
    /**
     * This is called after the info section html.
     *
     * @since 1.0.0
     */
    do_action('geodir_after_detail_page_more_info');

    $content_html = ob_get_clean();
    if (trim($content_html) != '')
        $content_html = '
' . $content_html . '
'; if ((int)get_option('geodir_disable_listing_info_section') != 1) { /** * Filter the output html for function geodir_detail_page_more_info(). * * @since 1.0.0 * @param string $content_html The output html of the geodir_detail_page_more_info() function. */ echo $content_html = apply_filters('geodir_detail_page_more_info_html', $content_html); } }