Advertisement
bowenac

new custom role if isset

Sep 4th, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function register_role_custom(){ ?>
  2.     <?php
  3.     if (isset($_GET['role'])){
  4.         $customRole = $_GET['role'];
  5.     }
  6.     else{
  7.         $customRole = $_POST['role'];
  8.     }
  9.     ?>
  10.     <input id="role" type="hidden" tabindex="0" size="0" value= "<?php echo $customRole;?>" name="role"/>
  11.  
  12. <?php
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement