WordPress.org

Plugin Directory

Changeset 422234


Ignore:
Timestamp:
08/11/11 17:43:29 (3 years ago)
Author:
mpvanwinkle77
Message:

Moved emessage filter

Location:
simplr-registration-form/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • simplr-registration-form/trunk/readme.txt

    r383802 r422234  
    55Requires at least: 2.8 
    66Tested up to: 3.0 
    7 Stable tag: 1.8 
     7Stable tag: 1.8.1 
    88 
    99This plugin allows users to easily add a custom user registration form anywhere on their site using simple shortcode. 
     
    5050=1.8= 
    5151Fixed tinyMCE button bug.  
     52 
     53=1.8.1= 
     54Added message filter 
  • simplr-registration-form/trunk/simplr_reg_page.php

    r383802 r422234  
    22/* 
    33Plugin Name: Simplr User Registration Form 
    4 Version: 0.1.7 
     4Version: 0.1.8.1 
    55Description: This a simple plugin for adding a custom user registration form to any post or page using shortcode. 
    66Author: Mike Van Winkle 
     
    317317    $email = $data['email']; 
    318318    $notify = $atts['notify']; 
    319     $emessage = apply_filters('simplr_email_confirmation_message', __("Your registration was successful.".$atts['message']), 'simplr-reg'); 
     319    $emessage = __("Your registration was successful.".$atts['message']); 
    320320    $headers = "From: $name" . ' <' .get_option('admin_email') .'> ' ."\r\n\\"; 
    321321    wp_mail($notify, "A new user registered for $name", "A new user has registered for $name.\rUsername: $user_name\r Email: $email \r",$headers); 
     
    325325        } 
    326326    $emessage .= "Username: $user_name\rPassword: $passw\rLogin: $site/wp-login.php"; 
    327     wp_mail($data['email'],"$name - Registration Confirmation", $emessage, $headers); 
    328      
     327    wp_mail($data['email'],"$name - Registration Confirmation", apply_filters('simplr_email_confirmation_message',$emessage,$data) , $headers); 
    329328} 
    330329 
     
    471470    wp_enqueue_script('simplr_reg_options', SIMPLR_DIR . 'simplr_reg_options.js', array('jquery')); 
    472471    wp_localize_script( 'simplr_reg_options', 'simplr', array( 'plugin_dir' => SIMPLR_DIR ) ); 
    473 } 
    474  
    475 ?> 
     472}?> 
Note: See TracChangeset for help on using the changeset viewer.