Function Reference: geodir_cf_panel_selected_fields_note

Summary

Returns description for given sub tab – selected fields box.

Package

GeoDirectory

Parameters

$note
(string) (required) The box description.

Default: None
$sub_tab
(string) (required) The sub tab slug.

Default: None
$listing_type
(string) (required) The post type.

Default: None

Return Values

(string)
  • The box description.

Change Log

Since: 1.0.0

Source File

geodir_cf_panel_selected_fields_note() is located in geodirectory-admin/admin_hooks_actions.php [Line: 931]

Source Code

function geodir_cf_panel_selected_fields_note($note, $sub_tab, $listing_type)
{

    switch ($sub_tab) {
        case 'custom_fields':
            $note = sprintf(__('Click to expand and view field related settings. You may drag and drop to arrange fields order on add %s listing form too.', 'geodirectory'), get_post_type_singular_label($listing_type, false, true));
            break;

        case 'sorting_options':
            $note = sprintf(__('Click to expand and view field related settings. You may drag and drop to arrange fields order in sorting option dropdown box on %s listing and search results page.', 'geodirectory'), get_post_type_singular_label($listing_type, false, true));
            break;
    }
    return $note;
}