Function Reference: geodir_cf_panel_available_fields_note
Summary
Returns description for given sub tab – available 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_available_fields_note() is located in geodirectory-admin/admin_hooks_actions.php [Line: 877]
Source Code
function geodir_cf_panel_available_fields_note($note, $sub_tab, $listing_type) { switch ($sub_tab) { case 'custom_fields': $note = sprintf(__('Click on any box below to add a field of that type to the add %s listing form. You can use a fieldset to group your fields.', 'geodirectory'), get_post_type_singular_label($listing_type, false, true)); break; case 'sorting_options': $note = sprintf(__('Click on any box below to make it appear in the sorting option dropdown on %s listing and search results.
To make a field available here, go to custom fields tab and expand any field from selected fields panel and tick the checkbox saying \'Include this field in sort option\'.', 'geodirectory'), get_post_type_singular_label($listing_type, false, true)); break; } return $note; }