Created
February 12, 2015 04:15
-
-
Save amdrew/da4d7a7641415757d793 to your computer and use it in GitHub Desktop.
Easy Digital Downloads + FES. Filter the TOS field to remove the textarea so you can link to a separate page in a new window
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
<?php | |
function sumobi_fes_tos( $field, $form_vars, $id, $type, $form_id, $read_only, $args ) { | |
ob_start(); | |
?> | |
<div class="fes-fields"> | |
<span data-required="yes" data-type="radio"></span> | |
<label> | |
<input type="checkbox" name="fes_accept_toc" required="required" /> <a href="<?php echo site_url( 'my-terms' ); ?>" target="_blank">Accept My Terms | |
</label> | |
</div> | |
<?php | |
return ob_get_clean(); | |
} | |
add_filter( 'fes_forms_toc_wrap', 'sumobi_fes_tos', 10, 7 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment