What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-11-05 19:20:22
Show Custom Input Field @ WooCommerce Single Product Page
/** * @snippet Add input field to products - WooCommerce * @how-to Get CustomizeWoo.com FREE * @author Rodolfo Melogl... Add solution -
Javascript 2021-11-05 07:44:08
remove jquery migrate from wp site
Removing jQuery migrate from WordPress is quite easy. You just need to add the following lines of code to your theme’s functions.php file. //Remove JQuery migrate function remove_jquery_migrate( $scripts ) { if ( ! is_admin() && isset... Add solution -
PHP 2021-11-04 12:03:15
send email when form is submitted php
<?php if(isset($_POST['submit'])){ $to = "[email protected]"; // this is your Email address $from = $_POST['email']; // this is the sender's Email address $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; ... Add solution -
PHP 2021-11-04 06:00:12
php session auto expire
//Ending a php session after 30 minutes of inactivity $minutesBeforeSessionExpire=30; if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > ($minutesBeforeSessionExpire*60))) { session_unset(); // unset $_SE... Add solution -
PHP 2021-11-03 19:37:21
?? ' ' operator in php laravel
// Null Coalesce Operator in PHP (Laravel) - $statement ?? '' $categoryName = $category->name ?? 'Not Available'; // The above Statement is identical to this if/else statement if (isset($category->name)) { $categoryName = $category->name; } ... Add solution -
PHP 2021-11-02 21:10:07
woocommerce add custom field data to cart page
add_filter( "woocommerce_add_cart_item_data", "cs_add_cart_item_data", 10,2 ); function cs_add_cart_item_data( $cart_item, $product_id ){ /* Custom Field name="" attr */ if ( isset($_POST['custom_field_name']) ) { ... Add solution
Best helpers
TheShade
+5
Auntkym
+5
Amalloy
+5
Mostafa 36a2
+5
RoToRa
+5
Rodrigorgs
+5
Matt2507864
+5
Nick Vaccaro
+5
Thepace
+5
Arnav Bose
+5
Waldrumpus
+5
Naigel
+5
Holyeyeolo
+5
A10ciod
+5
Catimann
+5
Rev1.0
+5
Babak
+5
Ohhh
+5
Jeff Sours
+5
Jim Mourgos
+5
J. Marks
+5
Piquet
+5