Skip to content

Instantly share code, notes, and snippets.

@strangerstudios
Created June 23, 2016 14:54
Show Gist options
  • Save strangerstudios/29b6e963ebb422eb5f33460c6da9a429 to your computer and use it in GitHub Desktop.
Save strangerstudios/29b6e963ebb422eb5f33460c6da9a429 to your computer and use it in GitHub Desktop.
Add a button/etc after the "domain" register helper field.
/*
Add a button/etc after the domain register helper field.
Add this code to your active theme's functions.php or a custom plugin.
Edit the $html .= ... line below to the HTML you need. You may want to load any assocaited javascript separately.
*/
function my_pmprorh_get_html($html, $field) {
if($field->name == 'domain') {
$html .= '
<button name="mybutton">Check</button>
';
}
return $html;
}
add_filter('pmprorh_get_html', 'my_pmprorh_get_html', 10, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment