function aff_register_ninja_forms_fields() { $args = array( 'name' => 'AFF Countries List', // This will be the label of the field button in the back-end editor. 'display_function' => 'aff_countries_dropdownlist', // This function will be called when the form is rendered on the front-end. 'sidebar' => 'template_fields', // This is the sidebar on the Field Settings tab that this field will show up in. 'display_label' => true, // Since we're adding a hidden form, we don't want to show the label on the front-end. 'display_wrap' => true, // Again, this is a hidden field, so we don't need the div wrapper that's normally output to the front-end. ); if ( function_exists( 'ninja_forms_register_field' ) ) { ninja_forms_register_field( 'aff_countries_dd', $args ); } } add_action( 'init', 'aff_register_ninja_forms_fields' ); /* * This f...