Adding Content to Forms
Adding Content Before/After a Form
If you would like to add content before a form, you may do so by getting the form object using tml_get_form() and modifying the appropriate properties. Consider the following code:
function modify_tml_forms() { // To modify a single form if ( $login_form = tml_get_form( 'login' ) ) { // Add content before the form $login_form->render_args['before'] = 'This is above/before the form!'; // Add content after the form $login_form->render_args['after'] = 'This is below/after the form!'; } // To modify all forms foreach ( tml_get_forms as $form ) { // Add content before the form $form->render_args['before'] = 'This is above/before the form!'; // Add content after the form $form->render_args['after'] = 'This is below/after the form!'; } } add_action( 'init', 'modify_tml_forms' );