Skip to content

Instantly share code, notes, and snippets.

@heilgar
Created September 11, 2015 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heilgar/be0e330a711466c2825b to your computer and use it in GitHub Desktop.
Save heilgar/be0e330a711466c2825b to your computer and use it in GitHub Desktop.
<?php
defined( 'ABSPATH' ) or die( 'Silence is golden!' );
/**
* Plugin Name: Contact Form Registration
* Plugin URI: http://thewebland.net/extensions/contact-form-registration
* Description: Auto registration for Contact Form 7
* Version: 1.0
* Author: Oleh (Heilgard) Hrebeniuk
* Author URI: http://thewebland.net
*/
register_activation_hook(__FILE__, 'init');
function init(){
if( function_exists( 'contact-form' ) ){
if ( !is_plugin_active( 'contact-form-7/wp-contact-form-7' )){
//@todo notice activate
}
} else {
//@todo notice install
}
}
function createUser($cfdata){
print_r($cfdata);
return ($cfdata);
}
//add_action('wpcf7_before_send_mail','createUser',1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment