Reputation
Top tag
Next privilege 20 Rep.
Talk in chat
Badges
1
Newest
 Student
Impact
~850 people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Jul
14
awarded  Student
Jul
14
asked How to programmatically add a user to a role?
Jul
14
comment referencing the current user in a page i created in wordpress
<?php require('/wordpress/wp-blog-header.php'); $current_user = wp_get_current_user(); $current_user->set_role(rocky2); ?>
Jul
14
comment referencing the current user in a page i created in wordpress
thanks Bainternet but I have added the require and am getting the error "cannot coonect to database" this is the code below:
Jul
13
comment referencing the current user in a page i created in wordpress
Yes it is a php page
Jul
13
asked referencing the current user in a page i created in wordpress