{"id":755,"date":"2019-05-07T16:04:31","date_gmt":"2019-05-07T16:04:31","guid":{"rendered":"https:\/\/wpgeodirectory.com\/docs-v2\/?post_type=docs&#038;p=755"},"modified":"2019-05-08T16:44:55","modified_gmt":"2019-05-08T16:44:55","slug":"system-status-tools","status":"publish","type":"docs","link":"https:\/\/wpgeodirectory.com\/docs-v2\/api\/system-status-tools\/","title":{"rendered":"System Status Tools"},"content":{"rendered":"<p><span class=\"bookmark-index\"><br \/>\n<a href=\"#intro\">Introduction<\/a><br \/>\n<a href=\"#endpoint\">Endpoints<\/a><br \/>\n<\/span><\/p>\n<h3><a href=\"#intro\">Introduction<\/a><\/h3>\n<p>REST API End Points for managing and checking GD System Status Tools.<\/p>\n<h3><a href=\"#endpoint\">EndPoints<\/a><\/h3>\n<div class=\"api-endpoint\">\n<div class=\"endpoint-data\">\n        <label class=\"label-get\">GET<\/label><\/p>\n<h6>\/wp-json\/geodir\/v2\/system_status\/tools<\/h6>\n<\/p><\/div>\n<\/div>\n<p><strong>Output<\/strong><\/p>\n<pre>\r\n[\r\n    {\r\n        \"id\": \"clear_version_numbers\",\r\n        \"name\": \"Clear version numbers\",\r\n        \"action\": \"Run\",\r\n        \"description\": \"This will force install\/upgrade functions to run.\",\r\n        \"_links\": {\r\n            \"item\": [\r\n                {\r\n                    \"embeddable\": true,\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/system_status\/tools\/clear_version_numbers\"\r\n                }\r\n            ]\r\n        }\r\n    },\r\n    {\r\n        \"id\": \"check_reviews\",\r\n        \"name\": \"Check reviews\",\r\n        \"action\": \"Run\",\r\n        \"description\": \"Check reviews for correct location and content settings.\",\r\n        \"_links\": {\r\n            \"item\": [\r\n                {\r\n                    \"embeddable\": true,\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/system_status\/tools\/check_reviews\"\r\n                }\r\n            ]\r\n        }\r\n    },\r\n    {\r\n        \"id\": \"install_pages\",\r\n        \"name\": \"Create default GeoDirectory pages\",\r\n        \"action\": \"Run\",\r\n        \"description\": \"<strong class=\\\"red\\\">Note:<\/strong> This tool will install all the missing GeoDirectory pages. Pages already defined and set up will not be replaced.\",\r\n        \"_links\": {\r\n            \"item\": [\r\n                {\r\n                    \"embeddable\": true,\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/system_status\/tools\/install_pages\"\r\n                }\r\n            ]\r\n        }\r\n    },\r\n    {\r\n        \"id\": \"recount_terms\",\r\n        \"name\": \"Term counts\",\r\n        \"action\": \"Run\",\r\n        \"description\": \"This tool will recount the listing terms.\",\r\n        \"_links\": {\r\n            \"item\": [\r\n                {\r\n                    \"embeddable\": true,\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/system_status\/tools\/recount_terms\"\r\n                }\r\n            ]\r\n        }\r\n    },\r\n    {\r\n        \"id\": \"export_db_texts\",\r\n        \"name\": \"DB text translation\",\r\n        \"action\": \"Run\",\r\n        \"description\": \"This tool will collect any texts stored in the DB and put them in the file db-language.php so they can then be used to translate them by translations tools.\",\r\n        \"_links\": {\r\n            \"item\": [\r\n                {\r\n                    \"embeddable\": true,\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/system_status\/tools\/export_db_texts\"\r\n                }\r\n            ]\r\n        }\r\n    }\r\n]\r\n<\/pre>\n<div class=\"api-endpoint\">\n<div class=\"endpoint-data\">\n        <label class=\"label-get\">GET<\/label><\/p>\n<h6>\/wp-json\/geodir\/v2\/system_status\/tools\/<id><\/h6>\n<p><strong>Example<\/strong><\/p>\n<h6>\/wp-json\/geodir\/v2\/system_status\/tools\/clear_version_numbers<\/h6>\n<\/p><\/div>\n<\/div>\n<p><strong>Output<\/strong><\/p>\n<pre>\r\n[\r\n    {\r\n        \"id\": \"clear_version_numbers\",\r\n        \"name\": \"Clear version numbers\",\r\n        \"action\": \"Run\",\r\n        \"description\": \"This will force install\/upgrade functions to run.\",\r\n        \"_links\": {\r\n            \"item\": [\r\n                {\r\n                    \"embeddable\": true,\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/system_status\/tools\/clear_version_numbers\"\r\n                }\r\n            ]\r\n        }\r\n    },\r\n    {\r\n        \"id\": \"check_reviews\",\r\n        \"name\": \"Check reviews\",\r\n        \"action\": \"Run\",\r\n        \"description\": \"Check reviews for correct location and content settings.\",\r\n        \"_links\": {\r\n            \"item\": [\r\n                {\r\n                    \"embeddable\": true,\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/system_status\/tools\/check_reviews\"\r\n                }\r\n            ]\r\n        }\r\n    },\r\n    {\r\n        \"id\": \"install_pages\",\r\n        \"name\": \"Create default GeoDirectory pages\",\r\n        \"action\": \"Run\",\r\n        \"description\": \"<strong class=\\\"red\\\">Note:<\/strong> This tool will install all the missing GeoDirectory pages. Pages already defined and set up will not be replaced.\",\r\n        \"_links\": {\r\n            \"item\": [\r\n                {\r\n                    \"embeddable\": true,\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/system_status\/tools\/install_pages\"\r\n                }\r\n            ]\r\n        }\r\n    },\r\n    {\r\n        \"id\": \"recount_terms\",\r\n        \"name\": \"Term counts\",\r\n        \"action\": \"Run\",\r\n        \"description\": \"This tool will recount the listing terms.\",\r\n        \"_links\": {\r\n            \"item\": [\r\n                {\r\n                    \"embeddable\": true,\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/system_status\/tools\/recount_terms\"\r\n                }\r\n            ]\r\n        }\r\n    },\r\n    {\r\n        \"id\": \"export_db_texts\",\r\n        \"name\": \"DB text translation\",\r\n        \"action\": \"Run\",\r\n        \"description\": \"This tool will collect any texts stored in the DB and put them in the file db-language.php so they can then be used to translate them by translations tools.\",\r\n        \"_links\": {\r\n            \"item\": [\r\n                {\r\n                    \"embeddable\": true,\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/system_status\/tools\/export_db_texts\"\r\n                }\r\n            ]\r\n        }\r\n    }\r\n]\r\n<\/pre>\n<div class=\"api-endpoint\">\n<div class=\"endpoint-data\">\n        <label class=\"label-post\">POST<\/label><\/p>\n<h6>\/wp-json\/geodir\/v2\/system_status\/tools\/<id><\/h6>\n<p><strong>Example<\/strong><\/p>\n<h6>\/wp-json\/geodir\/v2\/system_status\/tools\/clear_version_numbers<\/h6>\n<\/p><\/div>\n<\/div>\n<p><strong>Output<\/strong><\/p>\n<pre>\r\n{\r\n    \"id\": \"clear_version_numbers\",\r\n    \"name\": \"Clear version numbers\",\r\n    \"action\": \"Run\",\r\n    \"description\": \"This will force install\/upgrade functions to run.\",\r\n    \"success\": true,\r\n    \"message\": \"Version numbers cleared. Install\/upgrade functions will run on next page load.\",\r\n    \"_links\": {\r\n        \"item\": [\r\n            {\r\n                \"embeddable\": true,\r\n                \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/system_status\/tools\/clear_version_numbers\"\r\n            }\r\n        ]\r\n    }\r\n}\r\n<\/pre>\n","protected":false},"featured_media":0,"parent":750,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/755"}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/comments?post=755"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/755\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/750"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/media?parent=755"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/doc_tag?post=755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}