Advertisement
Guest User

Untitled

a guest
Oct 8th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.82 KB | None | 0 0
  1. // this is for the edit profile; for register please use the following filter: extraRegistrationField
  2. add_filter( 'extraEditProfileFilter', 'add_horoscope' );
  3. function add_horoscope(){
  4.     $extra_content = '';
  5.    
  6.     if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'update-user' ){
  7.         if isset( $_POST['date'] )
  8.             $date = $_POST['date'];
  9.     }
  10.    
  11.     $extra_content .= '
  12.         <p class="form-date">
  13.             <label for="date">Date</label>
  14.             <input class="text-input" name="date" type="text" id="date" value="'. $date .'" />
  15.             <span class="wppb-description-delimiter">Enter your birthdate</span>
  16.         </p><!-- .form-date -->';
  17.        
  18.        
  19.     if ( isset( $date ) )
  20.         $chinese_zodiac_code_or_string = ''; // add yours here
  21.  
  22.     $extra_content .= $chinese_zodiac_code_or_string;  
  23.        
  24.     return $extra_content;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement