Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // process shortcodes all over the form
- add_filter( 'gform_get_form_filter', 'shortcode_unautop', 11 );
- add_filter( 'gform_get_form_filter', 'do_shortcode', 11 );
- // TEST: quick [date] shortcode
- function gf_displaydate(){
- return date('F jS, Y');
- }
- add_shortcode( 'date', 'gf_displaydate' );
- // try [date] shortcode now in the form description or a field description
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement