Is key exists in JavaScript object
If its necessary to define is item with any key exists in the JavaScript object
If its necessary to define is item with any key exists in the JavaScript object
To count how many attributes is in the JavaScript object we can use next code:
1 | var count = Object.keys(myObject).length; |
Basics of emmet
Creating URL using PHP associative array
Extracting all links from text content
Disabling the XML-RPC API on a WordPress site running 3.5 or above.
If you changed a post permalink and you want to let old one works fine, in your WordPress siteĀ .htaccess file add next line:
1 | redirect 301 /about http://example.com/about-me |
Where ‘/about’ is old relative URL and ‘http://example.com/about-me’ new URL
If its necessary pass to the function a lot of variables – its possible compact them into associative array by next function
Using next code in wp-config.php file is possible to allow WordPress use more memory for its processes and increase the process performance time:
1 2 | define('WP_MEMORY_LIMIT', '500M'); set_time_limit (300); // 300 secs = 5min. - in wp-config.php |