Purge mysql log file in nginx
With MySQL8, they have turned on binary logging by default and the default purge (expiry/deletion) of binary logs is set to 30days. Once you are in your SSH and in…
With MySQL8, they have turned on binary logging by default and the default purge (expiry/deletion) of binary logs is set to 30days. Once you are in your SSH and in…
Empty tmp log file by sudo truncate -s0 /var/log/btmp.1 2. Check file size by sudo du -h --max-depth=1 -x 3. Delete mysql log Expire log file in 3 days :…
I simply added a class called "home" in landing page then just check this class as if (document.querySelector('.home') !== null) { // the conditions comes here }
// API to mailchimp ######################################################## $list_id = '7c5f7ad979'; $authToken = 'affe8d215db0b33e1fb22de12c565e17-us6'; // The data to send to the API $postData = array( "email_address" => $discountEmail, "status" => "subscribed" ); //…
It's very easy to send email in Wordpress $to = $discountEmail; $subject = "Your Subject"; $headers = array('Content-Type: text/html; charset=UTF-8'); $message = file_get_contents(get_template_directory().'/example.html', true); $attachments = "Attach"; wp_mail( $to, $subject,…
Edit /etc/nginx/sites-available/your_domain ... listen [::]:443 ssl; listen 443 ssl; ... Have to add http2 after ssl as bellow ... listen [::]:443 ssl http2; listen 443 ssl http2; ... Add #…
We can easily make transparent image in online. By this online tool we can select a specific area or color to transparent. Transparent image converter
Creating a custom URL that can me use as API. At first we need to use init hook in function.php /* allow ajax request api for custom url*/ add_action('init', function(){…
Need to add the above hook in function.php of active theme // Mini cart: Display custom price add_filter( 'woocommerce_cart_item_price', 'filter_cart_item_price', 10, 3 ); function filter_cart_item_price( $price_html, $cart_item, $cart_item_key ) {…
total prices of products in cart (with taxes): 127shipping costs: 12fees (taxable): 13discount from a coupon: 10 With these settings, I get the following on my cart object: "cart_contents_total":97.4998, "total":144.6,…