Created
June 23, 2016 14:54
-
-
Save strangerstudios/29b6e963ebb422eb5f33460c6da9a429 to your computer and use it in GitHub Desktop.
Add a button/etc after the "domain" register helper field.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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