{"id":22018389,"url":"https://github.com/biohzrdmx/wp-recaptcha","last_synced_at":"2026-05-06T05:37:05.113Z","repository":{"id":148606150,"uuid":"187244991","full_name":"biohzrdmx/wp-recaptcha","owner":"biohzrdmx","description":"Simple Google reCAPTCHA plugin for WordPress","archived":false,"fork":false,"pushed_at":"2020-08-27T21:15:26.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T09:35:23.788Z","etag":null,"topics":["php","plugin","recaptcha","wordpress"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/biohzrdmx.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-17T15:59:17.000Z","updated_at":"2020-08-27T21:15:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"07770d70-cb63-4e51-8d05-1130092b9c7a","html_url":"https://github.com/biohzrdmx/wp-recaptcha","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/biohzrdmx/wp-recaptcha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biohzrdmx%2Fwp-recaptcha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biohzrdmx%2Fwp-recaptcha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biohzrdmx%2Fwp-recaptcha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biohzrdmx%2Fwp-recaptcha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biohzrdmx","download_url":"https://codeload.github.com/biohzrdmx/wp-recaptcha/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biohzrdmx%2Fwp-recaptcha/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32680887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["php","plugin","recaptcha","wordpress"],"created_at":"2024-11-30T05:12:03.111Z","updated_at":"2026-05-06T05:37:05.098Z","avatar_url":"https://github.com/biohzrdmx.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wp-recaptcha\n\nSimple Google reCAPTCHA plugin for WordPress\n\n## Overview\n\nThis is a very simple integration plugin for WordPress, to make it easy for developers to add reCAPTCHA to custom forms.\n\nWith this plugin you will have to manually add the widget where you want it to be shown _and_ validate the response on the appropiate place.\n\nSo, as you may have guessed, this is not an automagic plugin that adds reCAPTCHA into all of WP forms (comments, login, etc). This is a plugin for developers who want to easily output a reCAPTCHA widget and then validate its response, knowing what they are doing.\n\n## Requirements\n\n- WordPress 5.x\n- PHP 5.6+\n\n## Installation\n\nClone/download the repo and install the plugin by unziping the contents of the zip into the `wp-content/plugins` folder of your WP installation, rename the resulting folder to `wp-recaptcha` and activate it through the WordPress admin dashboard.\n\nOnce installed you will see a 'reCAPTCHA' entry on the left-side menu, click it and you will see the options page. There you will require to set the `site` and `secret` keys.\n\n## Usage\n\nIf you don't have a `site` key, [click here](https://developers.google.com/recaptcha/) to get one.\n\nThen you must show the widget using the `widget` function directly on the template:\n\n```php\nif ( class_exists('ReCaptcha') ) {\n\tReCaptcha::widget();\n}\n```\n\n_Tip: It is recommended that you check for the class before trying to use it, just in case the plugin had been disabled._\n\nOnce the widget is being shown, check the response on you form processing logic using the `validate` function:\n\n```php\nif ( class_exists('ReCaptcha') ) {\n\t$recaptcha = get_item($_POST, 'g-recaptcha-response');\n\t$valid = ReCaptcha::validate($recaptcha);\n\tif (! $valid ) {\n\t\t// Not valid, abort processing\n\t\techo 'You ARE a robot';\n\t\tdie();\n\t}\n}\n// Otherwise continue as normal\n```\n\nAs simple as that.\n\n## Customization\n\nYou may customize the default widget by passing some parameters to the ```widget``` function:\n\n- `theme` - The theme to use, either `light` or `dark` (default: `light`)\n- `size` - The size of the widget, either `compact` or `normal` (default: `normal`)\n- `tabindex` - The tab index property (default: `0`)\n- `callback` - Callback for successful respone\n- `expired-callback` - Callback for expired widget\n- `error-callback` - Callback for error\n\nFor example:\n\n```php\nif ( class_exists('ReCaptcha') ) {\n\t$params = [];\n\t$params['theme'] = 'dark';\n\tReCaptcha::widget($params);\n}\n```\n\nYou can find more info here: https://developers.google.com/recaptcha/docs/display#render_param\n\n## Troubleshooting\n\nThe plugin will enqueue a `recaptcha` script with the path to the reCAPTCHA library. This may conflict with other reCAPTCHA plugins on the site.\n\nAlso, your server might block connections to the verification URL (https://www.google.com/recaptcha/api/siteverify) so please make sure you can reach it before submitting an issue.\n\nFinally, WordPress might make all this fail without a clear cause, so if you are submitting an issue please provide as much info as possible about the site in question (server type, WP version, PHP version, etc).\n\n## Licensing\n\nMIT licensed\n\nAuthor: biohzrdmx [\u003cgithub.com/biohzrdmx\u003e](https://github.com/biohzrdmx)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiohzrdmx%2Fwp-recaptcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiohzrdmx%2Fwp-recaptcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiohzrdmx%2Fwp-recaptcha/lists"}