Advertisement
Guest User

Untitled

a guest
Jul 8th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. $page = [
  2. 'post_type' => 'page',
  3. 'post_content' => '',
  4. 'post_status' => 'publish',
  5. 'post_title' => 'Create a new account',
  6. 'post_name' => 'account new'
  7. ];
  8.  
  9. $page_id = wp_insert_post($page);
  10.  
  11. <form method="post" id="new-account-form" action="/account-pending/">
  12.  
  13. public function get_account_pending()
  14. {
  15.  
  16. if (isset( $_POST['my_check_value'])) {
  17. $username = $_POST['username'];
  18. $password = $_POST['userpass'];
  19. $firstname = $_POST['firstname'];
  20. etc...
  21.  
  22. add_action( 'wp', array( &$this, 'get_account_pending' ) );
  23.  
  24. $this
  25. $_GET
  26. $_REQUEST
  27. $_SERVER
  28. $GLOBALS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement