{"id":25873109,"url":"https://github.com/codeinwp/wp-thememods-api","last_synced_at":"2025-03-02T08:29:43.471Z","repository":{"id":44645960,"uuid":"341218767","full_name":"Codeinwp/wp-thememods-api","owner":"Codeinwp","description":"Helper plugin which allows setting up theme mods via REST API. ","archived":false,"fork":false,"pushed_at":"2023-11-09T15:39:24.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-04-15T01:19:43.773Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Codeinwp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-22T13:59:56.000Z","updated_at":"2021-11-05T16:46:17.000Z","dependencies_parsed_at":"2022-09-13T15:41:17.864Z","dependency_job_id":null,"html_url":"https://github.com/Codeinwp/wp-thememods-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeinwp%2Fwp-thememods-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeinwp%2Fwp-thememods-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeinwp%2Fwp-thememods-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeinwp%2Fwp-thememods-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codeinwp","download_url":"https://codeload.github.com/Codeinwp/wp-thememods-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241481773,"owners_count":19969831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-02T08:29:42.693Z","updated_at":"2025-03-02T08:29:43.453Z","avatar_url":"https://github.com/Codeinwp.png","language":"PHP","readme":"# wp-thememods-api\n\nHelper plugin which allows setting up theme mods via REST API.\n\n#### Configuration\nIf you would like to restrict access to the endpoint you can define this constant `WPTHEMEMODS_SECRET` \nwith a passkey which can be sent along with the request as Bearer token. \nWhen the constant is not present the endpoint has public access.\n\n#### How to use\nThe endpoint is available at `wpthememods/v1/settings` and it receives a POST request with a JSON payload containg the theme mods to set. \n\n#### Sample Code\n```js\nvar myHeaders = new Headers();\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar raw = JSON.stringify({\"neve_default_sidebar_layout\":\"full-width\"});\n\nvar requestOptions = {\nmethod: 'POST',\nheaders: myHeaders,\nbody: raw,\nredirect: 'follow'\n};\n\nfetch(\"\u003csiteurl\u003e/wp-json/wpthememods/v1/settings\", requestOptions)\n.then(response =\u003e response.text())\n.then(result =\u003e console.log(result))\n.catch(error =\u003e console.log('error', error));\n```\n\n#### Disclaimer\n\n**This plugin should not be used on production environments.**  \n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeinwp%2Fwp-thememods-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeinwp%2Fwp-thememods-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeinwp%2Fwp-thememods-api/lists"}