add name and country
-
Hi, I have installed the plugin and modified a code a bit to add NAME field.
add_action( ‘mctb_before_submit_button’, function() {
echo ‘<input type=”text” name=”FNAME” placeholder=”il tuo Nome” />’;
});add_filter( ‘mctb_data’, function( $vars ) {
$vars[‘FNAME’] = ( isset( $_POST[‘FNAME’] ) ) ? sanitize_text_field( $_POST[‘FNAME’] ) : ”;
return $vars;
});It works but I now need to add a second Country field and cannot find a way to let the code working.
Can you help me please?The page I need help with: [log in to see the link]
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘add name and country’ is closed to new replies.