Ever wondered to have a customised log function to get array or text as input and add it to file with the exact date and time? guess what? here is the function, you can add it to your config file( or in WordPress add it to functions.php) and call it anywhere in your code to log
You need to decode filezilla encoded passwords? paste it here to get the encoded, decoded string. Put your text to Encode/Decode
In order to use git Check git version Command: git -version If not install, add it to your server (Centos) sudo yum install git-all Create local Repository: Command: git init Add all file to your local git command: git add -u * Commit them to your local repository command git commit <file> -m “some comment”
If you need to manually insert password into database for Magento or WordPress. You can generate hash password.
echo "md5 pass: ".md5($password); //md5 hash
echo "sh1 pass: ".sha1($password); //sh1 hash
echo "magento pass: ". md5($salt.$password).":".$salt; //magento hash with salt
//for wordpress, you need include PasswordHash class.
$wp_hasher = new PasswordHash(8, true);
echo "wp(v3 & v4) pass is: ". $wp_hasher->HashPassword( trim( $password ) );
If its easier you can use our pass generator form below: Password Salt for Magento
Editing wordpress theme on localhost is very easy and fast, but its getting tricky if you want to move your site from local environment to live server. Here is 4 step you need to follow:
Imagine you have a page which you want accessible by admin or logged-in user. You need redirect not Logged in users, if they directly access page’s url. there is a simple trick to that.
Ever wondering if you could use WordPress functions in your None-WordPress site, for example, show latest post in your site footer?
if you looking for a way to create a new sidebar area, to add widget and show on different part of website(footer,header,left, right or main content section), you can use dynamic_sidebar() function.
If you are using wordpress, sometimes you need to show other pages content in another page. You can use this function in your theme’s function.php file and you can call it anywhere.