Skip to content

Instantly share code, notes, and snippets.

@strangerstudios
strangerstudios / my_pmprorh_depends_fields_init.php
Last active April 13, 2021 18:10
Demonstration of the Register Helper "depends" field option.
<?php
function my_pmprorh_depends_fields_init()
{
//don't break if Register Helper is not loaded
if(!function_exists("pmprorh_add_registration_field"))
{
return false;
}
//add a new "About Your Pets" box on checkout form