admin

WordPress & PHP Programmer

All posts by admin

How to make auto-update for WordPress plugins and themes bought on Envato

Install next plugin: https://envato.com/market-plugin/ – this plugin helps customers receive updates to the premium Themes & Plugins purchased through Envato Market (ThemeForest & CodeCanyon). Do next steps: Install the plugin on your site Go to https://build.envato.com/create-token/?purchase:download=t&purchase:verify=t&purchase:list=t Enter token name there, any words you like, or set of random symbols Below entered token-key select any services you want,… read more

How to add WordPress user using php code

Sometimes its necessary to create new user on WordPress site using PHP code. Below is code which will make this work …

How can I count a JavaScript object’s attributes?

To count how many attributes is in the JavaScript object we can use next code:

Disable xml-rpc in WordPress

Disabling the XML-RPC API on a WordPress site running 3.5 or above. …

.htaccess 301 redirect

If you changed a post permalink and you want to let old one works fine, in your WordPress site .htaccess file add next line:

Where ‘/about’ is old relative URL and ‘http://example.com/about-me’ new URL