Inbuilt Arithmetic PHP functions

Posted by Prem Tiwari | Updated on |


Following are Inbuilt Arithmetic PHP functions/method with description. It’s contains PHP Math Functions and math operation. abs() — This function returns the absolute value of a number acos() — Using for to find arccosine of …

What are the drivers in MySQL?

Posted by Prem Tiwari | Updated on |


MySQL drivers provides standards-based drivers for JDBC, ODBC, and .Net enabling developers to build database applications in their language of choice. Following are the list of drivers available in MySQL to connect. PHP Driver JDBC …

How many TRIGGERS are allowed in MySql table?

Posted by Prem Tiwari | Updated on |


What is MySQL TRIGGERS? The MySQL trigger is a database object that is associated with a table. It will be activated when a defined action is executed for the table. MySQL supports triggers that are …

How to redirect users to custom pages by role in WordPress?

Posted by Prem Tiwari | Updated on |


Want to redirect users to custom pages by role in WordPress? Add the following code to the functions.php file of your current activated theme or you can also add the below code inside your site-specific …

Add a custom class to the_tags() in WordPress?

Posted by Prem Tiwari | Updated on |


Want to add a custom class to the_tags() in WordPress? This snippet will add a custom class to links displayed by the_tags() template tag. Add the following code to the functions.php file of your current …

How to redirect commenter to thank you post or page in WordPress?

Posted by Prem Tiwari | Updated on |


Want to redirect commenter to thank you post or page in WordPress? Add the following code to the functions.php file of your current activated theme or you can also add the below code inside your …

Function overloading typescript

Posted by Prem Tiwari | Updated on |


Want to know how to do function overloading in TypeScript? Use the following TypeScript code and execute it to see the output. In this example, We have shared TypeScript concept for function overloading. Example: Function …

How to find the sum of natural numbers up to n using recursion in PHP?

Posted by Prem Tiwari | Updated on |


Are you searching to find the sum of natural numbers up to n using recursion in PHP? Use the below PHP code to find the sum of natural numbers up to n. Program Output

How does debugging in WordPress work?

Posted by Prem Tiwari | Updated on |


You can enable the WordPress debugging by adding the WP_DEBUG as true in wp-config.php from your root directory. How does debugging in WordPress work? Open wp-config.php file from your root directory and copy paste below …

How to force sub categories to use parent category templates?

Posted by Prem Tiwari | Updated on |


Are you want to load the parent category templates on the sub categories also? Add the following code to the functions.php file of your current activated theme or you can also add the below code …

How to set maximum comment length in WordPress?

Posted by Prem Tiwari | Updated on |


Are you want to set the maximum comment length in WordPress site/blog? Add the following code to the functions.php file of your current activated WordPress theme.

How to set minimum word count to publish post in WordPress?

Posted by Prem Tiwari | Updated on |


If you want to set minimum word count for your posts to publish public, then answer is for you. In this answer, we have shared how to set minimum word count to publish post in …

How to remove related products output in WooCommerce?

Posted by Prem Tiwari | Updated on |


If you want to remove the related products output from the single product page in WooCommerce store, then this answer is for you as I have shared How to remove related products output in WooCommerce. …

How to change the placeholder image in WooCommerce?

Posted by Prem Tiwari | Updated on |


If you want to change the default product placeholder image in your WooCommerce store, then this answer is for you. I have shared the simple code to achieve this. How to change the placeholder image …

How to add a custom tab on single product page in WooCommerce?

Posted by Prem Tiwari | Updated on |


Add the below code at the end of your theme’s functions.php file or you can also add the below code inside your site-specific plugin.