Scroll to top

Blog

I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.

How to accept image extension from url in php?

How to accept image extension from url in php? <?php  $file_name = ‘http://localhost/brrrr/wp-content/uploads/2019/11/New-Business-card-4.jpg’; echo $file_name.”<br>”; $allowed = array(‘gif’, ‘png’, ‘jpg’); $ext = pathinfo($file_name, PATHINFO_EXTENSION); if (!in_array($ext, $allowed)) {    

Read More »

How to choose two dates (date range) from text field?

How to choose two dates (date range) from text field? <html> <head> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js”></script> <script src=’https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js’></script> <script src=’https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js’></script> <script src=’https://cdnjs.cloudflare.com/ajax/libs/jquery-date-range-picker/0.20.0/jquery.daterangepicker.min.js’></script> <link rel=’stylesheet’ href=’https://cdnjs.cloudflare.com/ajax/libs/jquery-date-range-picker/0.20.0/daterangepicker.min.css’> <script type=”text/javascript”> $(document).ready(function() { $(‘#date-range-filter’).dateRangePicker({ format: ‘DD/MM/YYYY’,

Read More »

How to Update Custom Cart Count with AJAX in WooCommerce?

How to Update Custom Cart Count with AJAX in WooCommerce? function totalcartqty(){ ?> <div class=”header-cart-count”><?php echo WC()->cart->get_cart_contents_count(); ?></div> <?php } add_action(‘wp_head’,’totalcartqty’); add_filter( ‘woocommerce_add_to_cart_fragments’, ‘iconic_cart_count_fragments’, 10, 1 ); function iconic_cart_count_fragments( $fragments

Read More »