Last active
September 18, 2015 17:07
-
-
Save kstover/8eb5aa7b0b0fee24cf0b to your computer and use it in GitHub Desktop.
This file contains 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 ninja_forms_custom_display( $before_fields, $form_id ) { | |
// Output text received from the database before our field output. | |
$text = get_stuff_from_somewhere_else( $form_id ); | |
$before_fields .= '<h4>'. $text . '</h4>'; | |
return $before_fields; | |
} | |
add_filter( 'nf_frontend_before_form', 'ninja_forms_custom_display', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment