Setting Options
Introduction
REST API End Points for managing and checking GD Settings Options.
EndPoints
/wp-json/geodir/v2/settings/
Example
/wp-json/geodir/v2/settings/general
Output
[ { "id": "admin_blocked_roles", "label": "Restrict wp-admin", "description": "The user roles that should be restricted from the wp-admin area.", "type": "multiselect", "default": [ "subscriber" ], "options": { "editor": "Editor", "author": "Author", "contributor": "Contributor", "subscriber": "Subscriber", "wpas_manager": "Support Supervisor", "wpas_support_manager": "Support Manager", "wpas_agent": "Support Agent", "wpas_user": "Support User", "bbp_keymaster": "Keymaster", "bbp_spectator": "Spectator", "bbp_blocked": "Blocked", "bbp_moderator": "Moderator", "bbp_participant": "Participant", "customer": "Customer", "shop_manager": "Shop manager" }, "tip": "The user roles that should be restricted from the wp-admin area.", "value": [ "subscriber" ], "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/admin_blocked_roles" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "user_trash_posts", "label": "User deleted posts", "description": "If checked a user deleted post will go to trash, otherwise it will be permanently deleted", "type": "checkbox", "default": "1", "value": "1", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/user_trash_posts" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "default_status", "label": "New listing default status", "description": "This is the post status a new listing will get when submitted from the frontend.", "type": "select", "default": "pending", "options": { "pending": "Pending Review", "publish": "Publish" }, "tip": "This is the post status a new listing will get when submitted from the frontend.", "value": "pending", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/default_status" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "post_logged_out", "label": "Allow posting without logging in?", "description": "If checked non logged in users will be able to post listings from the frontend.", "type": "checkbox", "default": "0", "value": 0, "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/post_logged_out" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "post_preview", "label": "Show preview button?", "description": "If checked a preview button will be shown on the add listing page so uses can preview their post.", "type": "checkbox", "default": "1", "value": 1, "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/post_preview" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "upload_max_filesize", "label": "Max upload file size(in mb)", "description": "(Maximum upload file size in MB, 1 MB = 1024 KB. Must be greater then 0(ZERO), for ex: 2. This setting will overwrite the max upload file size limit in image/file upload & import listings for entire GeoDirectory core + GeoDirectory plugins.)1073741824", "type": "number", "default": "2", "tip": "(Maximum upload file size in MB, 1 MB = 1024 KB. Must be greater then 0(ZERO), for ex: 2. This setting will overwrite the max upload file size limit in image/file upload & import listings for entire GeoDirectory core + GeoDirectory plugins.)1073741824", "value": "2", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/upload_max_filesize" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "noindex_archives", "label": "Noindex empty archives?", "description": "If checked this will attempt to add `noindex` tags to empty GD archive pages.", "type": "checkbox", "default": "0", "value": 0, "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/noindex_archives" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "maps_api", "label": "Maps API", "description": "- Google Maps API will force to load Google JS library only.\n- OpenStreetMap API will force to load OpenStreetMap JS library only.\n- Load Automatic will load Google JS library first, but if Google maps JS library not loaded it then loads the OpenStreetMap JS library to load the maps (recommended for regions where Google maps banned).\n- Disable Maps will disable and hides maps for entire site.", "type": "select", "default": "auto", "options": { "auto": "Automatic (recommended)", "google": "Google Maps API", "osm": "OpenStreetMap API", "none": "Disable Maps" }, "tip": "- Google Maps API will force to load Google JS library only.\n- OpenStreetMap API will force to load OpenStreetMap JS library only.\n- Load Automatic will load Google JS library first, but if Google maps JS library not loaded it then loads the OpenStreetMap JS library to load the maps (recommended for regions where Google maps banned).\n- Disable Maps will disable and hides maps for entire site.", "value": "auto", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/maps_api" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "map_language", "label": "Default map language", "description": "URLs will only be in one language, this will determine the language location slugs get. You should avoid changing this after listings have been added.", "type": "select", "default": "en", "options": { "ar": "ARABIC", "eu": "BASQUE", "bg": "BULGARIAN", "bn": "BENGALI", "ca": "CATALAN", "cs": "CZECH", "da": "DANISH", "de": "GERMAN", "el": "GREEK", "en": "ENGLISH", "en-AU": "ENGLISH (AUSTRALIAN)", "en-GB": "ENGLISH (GREAT BRITAIN)", "es": "SPANISH", "fa": "FARSI", "fi": "FINNISH", "fil": "FILIPINO", "fr": "FRENCH", "gl": "GALICIAN", "gu": "GUJARATI", "hi": "HINDI", "hr": "CROATIAN", "hu": "HUNGARIAN", "id": "INDONESIAN", "it": "ITALIAN", "iw": "HEBREW", "ja": "JAPANESE", "kn": "KANNADA", "ko": "KOREAN", "lt": "LITHUANIAN", "lv": "LATVIAN", "ml": "MALAYALAM", "mr": "MARATHI", "nl": "DUTCH", "no": "NORWEGIAN", "pl": "POLISH", "pt": "PORTUGUESE", "pt-BR": "PORTUGUESE (BRAZIL)", "pt-PT": "PORTUGUESE (PORTUGAL)", "ro": "ROMANIAN", "ru": "RUSSIAN", "sk": "SLOVAK", "sl": "SLOVENIAN", "sr": "SERBIAN", "sv": "SWEDISH", "tl": "TAGALOG", "ta": "TAMIL", "te": "TELUGU", "th": "THAI", "tr": "TURKISH", "uk": "UKRAINIAN", "vi": "VIETNAMESE", "zh-CN": "CHINESE (SIMPLIFIED)", "zh-TW": "CHINESE (TRADITIONAL)" }, "tip": "URLs will only be in one language, this will determine the language location slugs get. You should avoid changing this after listings have been added.", "value": "en", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/map_language" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "map_cache", "label": "Enable map cache", "description": "This will cache the map JSON for 24 hours or until a GD listing is saved.", "type": "checkbox", "default": "0", "value": "0", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/map_cache" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "usage_tracking", "label": "Allow Usage Tracking?", "description": "Want to help make GeoDirectory even more awesome? Allow GeoDirectory to collect non-sensitive diagnostic data and usage information. Find out more.", "type": "checkbox", "default": "", "value": 1, "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/usage_tracking" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "default_location_city", "label": "City", "description": "The default location city name.", "type": "text", "default": "Philadelphia", "tip": "The default location city name.", "value": "King", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/default_location_city" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "default_location_region", "label": "Region", "description": "The default location region name.", "type": "text", "default": "Pennsylvania", "tip": "The default location region name.", "value": "Ontario", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/default_location_region" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "default_location_country", "label": "Country", "description": "The default location country name.", "type": "select", "default": "United States", "options": { "Afghanistan": "Afghanistan", "Albania": "Albania", "Algeria": "Algeria", "American Samoa": "American Samoa", "Andorra": "Andorra", "Angola": "Angola", "Anguilla": "Anguilla", "Antarctica": "Antarctica", "Antigua and Barbuda": "Antigua and Barbuda", "Argentina": "Argentina", "Armenia": "Armenia", "Aruba": "Aruba", "Australia": "Australia", "Austria": "Austria", "Azerbaijan": "Azerbaijan", "Bahamas": "Bahamas", "Bahrain": "Bahrain", "Bangladesh": "Bangladesh", "Barbados": "Barbados", "Belarus": "Belarus", "Belgium": "Belgium", "Belize": "Belize", "Benin": "Benin", "Bermuda": "Bermuda", "Bhutan": "Bhutan", "Bolivia": "Bolivia", "Bonaire, Sint Eustatius and Saba": "Bonaire, Sint Eustatius and Saba", "Bosnia and Herzegovina": "Bosnia and Herzegovina", "Botswana": "Botswana", "Bouvet Island": "Bouvet Island", "Brazil": "Brazil", "British Indian Ocean Territory": "British Indian Ocean Territory", "British Virgin Islands": "British Virgin Islands", "Brunei Darussalam": "Brunei Darussalam", "Bulgaria": "Bulgaria", "Burkina Faso": "Burkina Faso", "Burundi": "Burundi", "Cabo Verde": "Cabo Verde", "Cambodia": "Cambodia", "Cameroon": "Cameroon", "Canada": "Canada", "Cayman Islands": "Cayman Islands", "Central African Republic": "Central African Republic", "Chad": "Chad", "Chile": "Chile", "China": "China", "Christmas Island": "Christmas Island", "Cocos (Keeling) Islands": "Cocos (Keeling) Islands", "Colombia": "Colombia", "Comoros": "Comoros", "Congo": "Congo", "Cook Islands": "Cook Islands", "Costa Rica": "Costa Rica", "Croatia": "Croatia", "Cuba": "Cuba", "Curaçao": "Curaçao", "Cyprus": "Cyprus", "Czechia": "Czechia", "Côte d'Ivoire": "Côte d'Ivoire", "Democratic Republic of the Congo": "Democratic Republic of the Congo", "Denmark": "Denmark", "Djibouti": "Djibouti", "Dominica": "Dominica", "Dominican Republic": "Dominican Republic", "Ecuador": "Ecuador", "Egypt": "Egypt", "El Salvador": "El Salvador", "Equatorial Guinea": "Equatorial Guinea", "Eritrea": "Eritrea", "Estonia": "Estonia", "Ethiopia": "Ethiopia", "Falkland Islands": "Falkland Islands", "Faroe Islands": "Faroe Islands", "Fiji": "Fiji", "Finland": "Finland", "France": "France", "French Guiana": "French Guiana", "French Polynesia": "French Polynesia", "French Southern Territories": "French Southern Territories", "Gabon": "Gabon", "Gambia": "Gambia", "Georgia": "Georgia", "Germany": "Germany", "Ghana": "Ghana", "Gibraltar": "Gibraltar", "Greece": "Greece", "Greenland": "Greenland", "Grenada": "Grenada", "Guadeloupe": "Guadeloupe", "Guam": "Guam", "Guatemala": "Guatemala", "Guernsey": "Guernsey", "Guinea": "Guinea", "Guinea-Bissau": "Guinea-Bissau", "Guyana": "Guyana", "Haiti": "Haiti", "Heard Island and McDonald Islands": "Heard Island and McDonald Islands", "Holy See": "Holy See", "Honduras": "Honduras", "Hong Kong": "Hong Kong", "Hungary": "Hungary", "Iceland": "Iceland", "India": "India", "Indonesia": "Indonesia", "Iran": "Iran", "Iraq": "Iraq", "Ireland": "Ireland", "Isle of Man": "Isle of Man", "Israel": "Israel", "Italy": "Italy", "Jamaica": "Jamaica", "Japan": "Japan", "Jersey": "Jersey", "Jordan": "Jordan", "Kazakhstan": "Kazakhstan", "Kenya": "Kenya", "Kiribati": "Kiribati", "Kosovo": "Kosovo", "Kuwait": "Kuwait", "Kyrgyzstan": "Kyrgyzstan", "Lao People's Democratic Republic": "Lao People's Democratic Republic", "Latvia": "Latvia", "Lebanon": "Lebanon", "Lesotho": "Lesotho", "Liberia": "Liberia", "Libya": "Libya", "Liechtenstein": "Liechtenstein", "Lithuania": "Lithuania", "Luxembourg": "Luxembourg", "Macao": "Macao", "Macedonia (the former Yugoslav Republic of)": "Macedonia (the former Yugoslav Republic of)", "Madagascar": "Madagascar", "Malawi": "Malawi", "Malaysia": "Malaysia", "Maldives": "Maldives", "Mali": "Mali", "Malta": "Malta", "Marshall Islands": "Marshall Islands", "Martinique": "Martinique", "Mauritania": "Mauritania", "Mauritius": "Mauritius", "Mayotte": "Mayotte", "Mexico": "Mexico", "Micronesia": "Micronesia", "Moldova": "Moldova", "Monaco": "Monaco", "Mongolia": "Mongolia", "Montenegro": "Montenegro", "Montserrat": "Montserrat", "Morocco": "Morocco", "Mozambique": "Mozambique", "Myanmar": "Myanmar", "Namibia": "Namibia", "Nauru": "Nauru", "Nepal": "Nepal", "Netherlands": "Netherlands", "New Caledonia": "New Caledonia", "New Zealand": "New Zealand", "Nicaragua": "Nicaragua", "Niger": "Niger", "Nigeria": "Nigeria", "Niue": "Niue", "Norfolk Island": "Norfolk Island", "North Korea": "North Korea", "Northern Mariana Islands": "Northern Mariana Islands", "Norway": "Norway", "Oman": "Oman", "Pakistan": "Pakistan", "Palau": "Palau", "Palestine": "Palestine", "Panama": "Panama", "Papua New Guinea": "Papua New Guinea", "Paraguay": "Paraguay", "Peru": "Peru", "Philippines": "Philippines", "Pitcairn": "Pitcairn", "Poland": "Poland", "Portugal": "Portugal", "Puerto Rico": "Puerto Rico", "Qatar": "Qatar", "Romania": "Romania", "Russian Federation": "Russian Federation", "Rwanda": "Rwanda", "Réunion": "Réunion", "Saint Barthélemy": "Saint Barthélemy", "Saint Helena, Ascension and Tristan da Cunha": "Saint Helena, Ascension and Tristan da Cunha", "Saint Kitts and Nevis": "Saint Kitts and Nevis", "Saint Lucia": "Saint Lucia", "Saint Martin": "Saint Martin", "Saint Pierre and Miquelon": "Saint Pierre and Miquelon", "Saint Vincent and the Grenadines": "Saint Vincent and the Grenadines", "Samoa": "Samoa", "San Marino": "San Marino", "Sao Tome and Principe": "Sao Tome and Principe", "Saudi Arabia": "Saudi Arabia", "Senegal": "Senegal", "Serbia": "Serbia", "Seychelles": "Seychelles", "Sierra Leone": "Sierra Leone", "Singapore": "Singapore", "Sint Maarten": "Sint Maarten", "Slovakia": "Slovakia", "Slovenia": "Slovenia", "Solomon Islands": "Solomon Islands", "Somalia": "Somalia", "South Africa": "South Africa", "South Georgia and the South Sandwich Islands": "South Georgia and the South Sandwich Islands", "South Korea": "South Korea", "South Sudan": "South Sudan", "Spain": "Spain", "Sri Lanka": "Sri Lanka", "Sudan": "Sudan", "Suriname": "Suriname", "Svalbard and Jan Mayen": "Svalbard and Jan Mayen", "Swaziland": "Swaziland", "Sweden": "Sweden", "Switzerland": "Switzerland", "Syrian Arab Republic": "Syrian Arab Republic", "Taiwan": "Taiwan", "Tajikistan": "Tajikistan", "Tanzania": "Tanzania", "Thailand": "Thailand", "Timor-Leste": "Timor-Leste", "Togo": "Togo", "Tokelau": "Tokelau", "Tonga": "Tonga", "Trinidad and Tobago": "Trinidad and Tobago", "Tunisia": "Tunisia", "Turkey": "Turkey", "Turkmenistan": "Turkmenistan", "Turks and Caicos Islands": "Turks and Caicos Islands", "Tuvalu": "Tuvalu", "US Virgin Islands": "US Virgin Islands", "Uganda": "Uganda", "Ukraine": "Ukraine", "United Arab Emirates": "United Arab Emirates", "United Kingdom": "United Kingdom", "United States": "United States", "United States Minor Outlying Islands": "United States Minor Outlying Islands", "Uruguay": "Uruguay", "Uzbekistan": "Uzbekistan", "Vanuatu": "Vanuatu", "Venezuela": "Venezuela", "Vietnam": "Vietnam", "Wallis and Futuna": "Wallis and Futuna", "Western Sahara": "Western Sahara", "Yemen": "Yemen", "Zambia": "Zambia", "Zimbabwe": "Zimbabwe", "Åland Islands": "Åland Islands" }, "tip": "The default location country name.", "value": "Canada", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/default_location_country" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "default_location_latitude", "label": "City Latitude", "description": "The latitude of the default location.", "type": "number", "default": "39.9523894183957", "tip": "The latitude of the default location.", "value": "44.01247015", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/default_location_latitude" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "default_location_longitude", "label": "City Longitude", "description": "The longitude of the default location.", "type": "number", "default": "-75.16359824536897", "tip": "The longitude of the default location.", "value": "-79.5852650282252", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/default_location_longitude" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "default_location_timezone", "label": "Timezone", "description": "Set the site timezone. Ex: +5:30 or GMT+5:30 or UTC+5:30", "type": "text", "tip": "Set the site timezone. Ex: +5:30 or GMT+5:30 or UTC+5:30", "value": "", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/default_location_timezone" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_cpt_title", "label": "Title", "description": "Enter the title to use for the page", "type": "text", "tip": "Enter the title to use for the page", "value": "All %%pt_plural%% %%in_location_single%%", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_cpt_title" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_cpt_meta_title", "label": "Meta Title", "description": "Enter the meta title to use for the page", "type": "text", "tip": "Enter the meta title to use for the page", "value": "%%pt_plural%% %%in_location%% %%sep%% %%sitename%%", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_cpt_meta_title" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_cpt_meta_description", "label": "Meta Description", "description": "Enter the meta description to use for the page", "type": "textarea", "tip": "Enter the meta description to use for the page", "value": "%%pt_plural%% %%in_location%%", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_cpt_meta_description" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_cat_archive_title", "label": "Category Title", "description": "Enter the title to use for the page", "type": "text", "tip": "Enter the title to use for the page", "value": "All %%category%% %%in_location_single%%", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_cat_archive_title" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_cat_archive_meta_title", "label": "Category Meta Title", "description": "Enter the meta title to use for the page", "type": "text", "tip": "Enter the meta title to use for the page", "value": "%%category%% %%in_location%% %%sep%% %%sitename%%", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_cat_archive_meta_title" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_cat_archive_meta_description", "label": "Category Meta Description", "description": "Enter the meta description to use for the page", "type": "textarea", "tip": "Enter the meta description to use for the page", "value": "Posts related to Category: %%category%% %%in_location%%", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_cat_archive_meta_description" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_tag_archive_title", "label": "Tag Title", "description": "Enter the title to use for the page", "type": "text", "tip": "Enter the title to use for the page", "value": false, "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_tag_archive_title" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_tag_archive_meta_title", "label": "Tag Meta Title", "description": "Enter the meta title to use for the page", "type": "text", "tip": "Enter the meta title to use for the page", "value": "", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_tag_archive_meta_title" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_tag_archive_meta_description", "label": "Tag Meta Description", "description": "Enter the meta description to use for the page", "type": "textarea", "tip": "Enter the meta description to use for the page", "value": "", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_tag_archive_meta_description" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_single_title", "label": "Title", "description": "Enter the title to use for the page", "type": "text", "tip": "Enter the title to use for the page", "value": "", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_single_title" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_single_meta_title", "label": "Meta Title", "description": "Enter the meta title to use for the page", "type": "text", "tip": "Enter the meta title to use for the page", "value": "%%title%% %%sep%% %%sitename%%", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_single_meta_title" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_single_meta_description", "label": "Meta Description", "description": "Enter the meta description to use for the page", "type": "textarea", "tip": "Enter the meta description to use for the page", "value": "%%excerpt%%", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_single_meta_description" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_location_title", "label": "Title", "description": "Enter the title to use for the page", "type": "text", "tip": "Enter the title to use for the page", "value": "", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_location_title" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_location_meta_title", "label": "Meta Title", "description": "Enter the meta title to use for the page", "type": "text", "tip": "Enter the meta title to use for the page", "value": "%%title%% %%location%% %%sep%% %%sitename%%", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_location_meta_title" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_location_meta_description", "label": "Meta Description", "description": "Enter the meta description to use for the page", "type": "textarea", "tip": "Enter the meta description to use for the page", "value": "%%location%%", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_location_meta_description" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_search_title", "label": "Title", "description": "Enter the title to use for the page", "type": "text", "tip": "Enter the title to use for the page", "value": "", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_search_title" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_search_meta_title", "label": "Meta Title", "description": "Enter the meta title to use for the page", "type": "text", "tip": "Enter the meta title to use for the page", "value": "%%pt_plural%% search results for %%search_term%%, Near %%search_near%% %%sep%% %%sitename%%", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_search_meta_title" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_search_meta_description", "label": "Meta Description", "description": "Enter the meta description to use for the page", "type": "textarea", "tip": "Enter the meta description to use for the page", "value": "%%pt_plural%% search results for %%search_term%%, Near %%search_near%%", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_search_meta_description" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_add_listing_title", "label": "Add Title", "description": "Enter the title to use for the page", "type": "text", "tip": "Enter the title to use for the page", "value": "Add %%pt_single%%", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_add_listing_title" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_add_listing_title_edit", "label": "Edit Title", "description": "Enter the title to use for the page", "type": "text", "tip": "Enter the title to use for the page", "value": "Edit %%pt_single%%", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_add_listing_title_edit" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_add_listing_meta_title", "label": "Meta Title", "description": "Enter the meta title to use for the page", "type": "text", "tip": "Enter the meta title to use for the page", "value": "Add %%pt_single%% %%sep%% %%sitename%%", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_add_listing_meta_title" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "seo_add_listing_meta_description", "label": "Meta Description", "description": "Enter the meta description to use for the page", "type": "textarea", "tip": "Enter the meta description to use for the page", "value": "Add %%pt_single%%", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/seo_add_listing_meta_description" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "search_default_text", "label": "Search field placeholder text", "description": "Show the search text box `placeholder` value on search form.", "type": "text", "default": "", "tip": "Show the search text box `placeholder` value on search form.", "value": "Search for", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/search_default_text" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "search_default_near_text", "label": "Near field placeholder text", "description": "Show the near text box 'placeholder' value on search form.", "type": "text", "default": "", "tip": "Show the near text box 'placeholder' value on search form.", "value": "Near", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/search_default_near_text" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "search_default_button_text", "label": "Search button label", "description": "Show the search button label on search form. You can use a font awesome class here.", "type": "text", "default": "", "tip": "Show the search button label on search form. You can use a font awesome class here.", "value": "Search", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/search_default_button_text" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "search_radius", "label": "Search near radius", "description": "Limits the search radius to X miles/km (lower numbers help with speed) ", "type": "number", "default": "7", "tip": "Limits the search radius to X miles/km (lower numbers help with speed) ", "value": "40", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/search_radius" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "search_distance_long", "label": "Search distances", "description": "Show search distances in miles or km", "type": "select", "default": "miles", "options": { "miles": "Miles", "km": "Kilometers" }, "tip": "Show search distances in miles or km", "value": "miles", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/search_distance_long" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "search_distance_short", "label": "Search distances short", "description": "If distance is less than 0.01 show distance in meters or feet", "type": "select", "default": "feet", "options": { "feet": "Feet", "meters": "Meters" }, "tip": "If distance is less than 0.01 show distance in meters or feet", "value": "meters", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/search_distance_short" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "search_near_addition", "label": "Search near additional", "description": "This is useful if your directory is limited to one location such as: New York or Australia (this setting should be blank if using default country, regions etc with multilocation addon as it will automatically add them)", "type": "text", "default": "", "tip": "This is useful if your directory is limited to one location such as: New York or Australia (this setting should be blank if using default country, regions etc with multilocation addon as it will automatically add them)", "value": "", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/search_near_addition" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "search_word_limit", "label": "Individual word search limit", "description": "With this option you can limit individual words being searched for, for example searching for `Jo Brown` would return results with words like `Jones`, you can exclude these types of small character words if you wish.", "type": "select", "default": "0", "options": [ "Disabled", "1 Character words excluded", "2 Character words and less excluded", "3 Character words and less excluded" ], "tip": "With this option you can limit individual words being searched for, for example searching for `Jo Brown` would return results with words like `Jones`, you can exclude these types of small character words if you wish.", "value": "0", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/search_word_limit" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "admin_disable_advanced", "label": "Advanced settings", "description": "Disable advanced toggle, show advanced settings at all times (not recommended).", "type": "checkbox", "value": "", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/admin_disable_advanced" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "enable_404_rescue", "label": "Enable 404 rescue", "description": "This will check 404 pages where a GD CPT is identified and try and redirect to the correct url. This should help tell search engines about term or post permalink changes.", "type": "checkbox", "default": "1", "value": "1", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/enable_404_rescue" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "admin_enable_beta", "label": "Enable beta addons", "description": "This will allow beta addons to be installed.", "type": "checkbox", "default": "1", "value": "1", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/admin_enable_beta" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } }, { "id": "admin_uninstall", "label": "Remove Data on Uninstall?", "description": "Check this box if you would like GeoDirectory to completely remove all of its data when the plugin is deleted.", "type": "checkbox", "value": "0", "_links": { "self": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general/admin_uninstall" } ], "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/settings/general" } ] } } ]
EndPoints
/wp-json/geodir/v2/settings//
Example
/wp-json/geodir/v2/settings/general/default_status
Value = publish
Output