Tag Archive

WordPress: get the role of the current user

Published on March 18, 2010 By admin

/* get the role of the current user */ global $current_user, $wpdb; $var = $wpdb->prefix . ‘capabilities’; $caps = $current_user->$var;

Restore MySql database using command line

Published on December 17, 2009 By admin

mysql -u USER -p DBNAME < dump.sql Where: USER is your username DBNAME is Databas witch will be restored dump.sql (any .sql file can be used) is your database dump