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 add days in a specific date in php?

How to add days in a specific date in php?   <?php $Date = “2010-09-17”; echo date(‘Y-m-d’, strtotime($Date. ‘ + 1 days’)); echo date(‘Y-m-d’, strtotime($Date. ‘ + 2 days’)); ?>

Read More »

How to get order info (billing info) from order in woocommerce?

woocommerce-easily-get-order-info-total-items-etc-from-order // Get Order ID $order->get_id(); // Get Order Totals $0.00 $order->get_formatted_order_total(); $order->get_cart_tax(); $order->get_currency(); $order->get_discount_tax(); $order->get_discount_to_display(); $order->get_discount_total(); $order->get_fees(); $order->get_formatted_line_subtotal(); $order->get_shipping_tax(); $order->get_shipping_total(); $order->get_subtotal(); $order->get_subtotal_to_display(); $order->get_tax_location(); $order->get_tax_totals(); $order->get_taxes(); $order->get_total(); $order->get_total_discount(); $order->get_total_tax(); $order->get_total_refunded();

Read More »

How to update data in database in wordpress?

<?php if(isset($_POST[“submit”])){ extract($_POST);$parametername = $_POST[‘parametersname’]; $id = 4;/***** updating user *****/ $userstable = $wpdb->prefix . “apindt_parameters”; $where = array( ‘ID’ => $id ); $wpdb->update( $userstable, array( ‘parameters_name’ => $parametersname, ‘wet’

Read More »