Custom WooCommerce Webhook Topic
I need to send WooCommerce webhook requests only when an order is completed. But WooCommerce does not have any webhook topic for order completion. I created the custom topic ‘Custom […]
I need to send WooCommerce webhook requests only when an order is completed. But WooCommerce does not have any webhook topic for order completion. I created the custom topic ‘Custom […]
If your PHP script is running on Pantheon hosting , you might be noticed that PHP rename function is not working. In PHP rename function is used to rename a […]
You can delete a directory using rmdir() function. But rmdir function has limitation. To remove a directory using rmdir , the directory must be blank. If a directory contains multiple […]
We know how to access PHP array items. If we know the number of keys and name of keys we can set a value to a multidimensional array item.For example […]
You must know the use of WordPress custom field (also known as Post Meta). You might see that if you have many custom fields in your WP then you don’t […]
Custom alternative function for JavaScript trim(). JavaScript trim() method is not supported in Internet Explorer 8 and earlier versions. IE8 says: Object doesn’t support this property or method. I am using an alternative method to Keep my JS project error free on IE.
A very easy way to publish your WordPress post just right now but post date will be a future time. Display future scheduled post to visitors. Here I will show you a very simple trick to do this. Just copy my simple PHP code snippet into your theme functions.php
Change your WordPress default media upload directory to new location. Store your media files in new location instead of wp-content/uploads . WordPress Media Library will access media files form your new directory. Here I am showing your how to do that.
Using raw JavaScript retrieve query string value based on parameter name. A simple custom JavaScript function returns the value of given parameter name from current page location.
If you want to dynamically set or remove a CSS class name for a HTML element, then you need to do some javaScript works. We can do this by using […]