Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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