June 30, 2017

WooCommerce Add-On / Woo Installments

Online Content Selling Tool

May 30, 2017

PHP function humanize

function humanize($str){ return ucwords(str_replace(array(‘_’, ‘-‘), ‘ ‘, $str)); }

Option field value not loading on Archive page – WP_Query

  <?php global $development_logos; add_action(‘init’, ‘development_logos’); function development_logos(){ global $development_logos; $development_logos = get_field(‘development_logos’,’option’); } function dev_logos_func( $atts ){ global $development_logos; $devLogos = ‘<div id=”logos”>’; foreach($development_logos as $the_row){ $devLogos .= ‘<a href=”‘.$the_row[‘dev_url’].'” target=”_blank”>’.$the_row[‘dev_name’].'</a><div class=”logosTxt”>’.$the_row[‘dev_text’].'</div>’; } $devLogos .= ‘</div>’; return $devLogos; } add_shortcode( ‘dev_logos’, ‘dev_logos_func’ );

May 24, 2017

Godaddy cron job commands

Type#1: /usr/local/bin/php -q /home/[USER]/[PATH TO FILE] Type#2: wget [URL] > /dev/null 2>&1

February 18, 2017

WooCommerce Email Hooks

Source: https://businessbloomer.com/woocommerce-visual-hook-guide-emails/

January 20, 2017

WordPress Plugin – Chameleon

WordPress Plugin – Chameleon

December 21, 2016

WordPress Lovers Gathering in Lahore Pakistan, 400+ Attended Lahore Meetup

Over the weekend, the WordPress community in Lahore, Pakistan held its 10th monthly meetup. It is an amazing effort by TechHub Pioneers to attract youth towards WordPress meetup. First ever WordPress Meetup was organized by Kamran Zahid of Timelenders a lead trainer, on 5th of April 2012 at Salt-n-Pepper Restaurant, Lahore Pakistan. The Second meetup […]

November 4, 2016

How to get timezone of client machine with JavaScript?

function formatedZone() { var now = new Date(), tzo = -now.getTimezoneOffset(), dif = tzo >= 0 ? ‘+’ : ‘-‘, pad = function(num) { var norm = Math.abs(Math.floor(num)); return (norm < 10 ? ‘0’ : ”) + norm; }; return dif+pad(tzo / 60)+ ‘:’ +pad(tzo % 60); }