PHP code example of developwithwp / omg-forms-constant-contact

1. Go to this page and download the library: Download developwithwp/omg-forms-constant-contact library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

developwithwp / omg-forms-constant-contact example snippets


if ( file_exists( get_template_directory() . '/vendor/autoload.php' ) ) {
    

$args = [
		'name'              =>  'my-form-name',
		'redirect'          =>  false,
		'email'             =>  false,
		'form_type'         =>  'constant-contact',
		'success_message'   =>  'Thank you!',
		'list_id'           =>  '1233',
		'fields' => [
			[
				'slug'      =>   'first_name',
				'label'     =>   'First Name',
				'type'      =>   'text',
				'

echo \OMGForms\Core\display_form( 'my-form-name' );