PHP Generate a list of all dates for a given month and year
A PHP function to generate a list of information of all dates for a given month and year. Input: month and year in number. Output: Two-dimensional array of all dates. […]
A PHP function to generate a list of information of all dates for a given month and year. Input: month and year in number. Output: Two-dimensional array of all dates. […]
WordPress Gravity Forms plugin lets you set dynamic values for fields via shortcode ( merge tag ). You can populate a field with a date value using the merge tag […]
WordPress Gravity Forms plugin’s documentation provides a code snippet to make a field read-only. But making read-only is not a good solution for input type text and select input fields. […]
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 […]
In WordPress we use wp_enqueue_script and wp_enqueue_style functions to add our script and stylesheet to the page. By default these functions print <script> and <link> tags as normal. But sometimes […]
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 […]
Method 1 : Method 2 :
To delete all of your local git branches except master and development run following command Command :
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 […]