Skip to content

Instantly share code, notes, and snippets.

Avatar

Drew Phillips dapphp

  • CA, US
View GitHub Profile
@dapphp
dapphp / wordpress.sample-page.php
Created May 19, 2015
Sample WordPress page for validating a Securimage-WP CAPTCHA from shortcode
View wordpress.sample-page.php
<h3>Securimage-WP Example Form</h3>
I am a WordPress page with a form containing a few simple fields including a CAPTCHA using the Securimage-WP WordPress plugin.
I utilize the shortcode <code>&#x5B;siwp_show_captcha&#x5D;</code> to display a CAPTCHA, and then validate it by calling <code>siwp_check_captcha()</code>.
For this to work as a WordPress page, a plugin for executing PHP code within WordPress pages (i.e. Exec-PHP) will need to be installed so PHP code can be run from a page. You can also post the form to a standalone PHP script for validation as long as it has access to the WordPress code (includes wp-load.php somewhere in the script).
<?php
View keybase.md

Keybase proof

I hereby claim:

  • I am dapphp on github.
  • I am drew010 (https://keybase.io/drew010) on keybase.
  • I have a public key whose fingerprint is F801 831C 5864 CCFE 5D1E 118F F6AF 85DC 6E7B 19EE

To claim this, I am signing this object:

You can’t perform that action at this time.