Create wordpress password for your theme function or plugins.
function generate_wp_pass($text_password) {
require_once( ABSPATH . 'wp-includes/class-phpass.php');
//IN 3.6 OR OLDER VERSION CANNOT AUTO LOAD PASSWORD CLASS SO YOU WILL NEED TO LOAD IT MANNUALLY
$wp_hasher = new PasswordHash(8, true);
return $hasher->HashPassword($text_password);
}
Currently working in software house named Wiztech as position of Senior Web Developer, I love to share tips and techniques of programming, author of SDTuts 27 years old, I am from Karachi, Sindh, Pakistan and I am working on Web Designing and Development with Adobe Photoshop CS, HTML, CSS, JavaScript,…Read More Description