Rewrite profile in wordpress

Question!

I have 2 user roles in my website ('Teachers' and 'Student'). I wanna change Teachers profile URL to site.com/teacher_username and Students change to site.com/student/username. How can I rewrite URLs ?!



Answers

You can easily rewrite urls using the Wordpress Rewrite API.

Easy example:

function custom_rewrite_basic() {
  add_rewrite_rule('^leaf/([0-9]+)/?', 'index.php?page_id=$matches[1]', 
'top');
}

add_action('init', 'custom_rewrite_basic');

You can find more information here: https://codex.wordpress.org/Rewrite_API/add_rewrite_rule



Depends on how accurate you want the speedtest to be, the larger the file the more accurate it is. But this can be a big annoyance/data hog for the user.

The big number appears because it's in bytes, to get Mb/s you need to do Your result / 1024^2.



Disable attribute only associates button and input filelds, the thing you want to do here is , event.preventDefault . It will work like disable, but it will depend upon your coding, if you want to show it disabled, you have to add add via jquery



This video can help you solving your question :)
By: admin