add_action('init', 'load_agentrank_script'); //load contact form check email script function load_agent_contact_form_script(){ echo" "; } add_action('wp_head','load_agent_contact_form_script'); /****function to create registration form****/ function create_agentrank_register_form($fname, $lname, $email, $email2, $role, $status_message) { $check_real_apikey = get_option('agent_apikey'); if (empty($check_real_apikey)) { $display = 'display:block;'; } else { $display = 'display:none;'; } //remove slashes added in message by PHP, so that style classes are not escaped! $status_messages = stripslashes($status_message); //create form $form = "