Monthly Archives: March 2021

How to add contact form 7 inside a custom function?

By | March 23, 2021

Here is a rough example for using contact form 7 inside a filter hook. add_filter( ‘wpcf7_validate_tel*’, static function ($result, $tag) { // Conditional logic that used to be in the function $url = home_url(add_query_arg(null, null)); if (!(strpos($url, ‘id’) && strpos($url, ‘form_id’))) { // This is the original callback, now moved here. // Assign the result… Read More »

Add free shipping notices on WooCommerce product price

By | March 21, 2021

Here is the custom code for adding free shipping notices based on the WooCommerce product price 1 free shipping notice if the price is lower than 25 € 1 free shipping notice if the price is higher than 25 € you need to add the below code in the functons.php file of the website’s child… Read More »