Skip to content

Instantly share code, notes, and snippets.

View smtechno's full-sized avatar

FaizAlias smtechno

View GitHub Profile
@smtechno
smtechno / removebilling.php
Last active October 17, 2017 13:43
Remove Billing and Shipping Address In Woocommerce Checkout
/**
* Remove Billing and Shipping Address In Woocommerce Checkout
*/
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
function custom_override_checkout_fields( $fields ) {
unset($fields['billing']['billing_first_name']);
unset($fields['billing']['billing_last_name']);
unset($fields['billing']['billing_company']);
@smtechno
smtechno / woocomment.php
Created October 17, 2017 13:56
Comment Field In Woocommerce Checkout
unset($fields['order']['order_comments']);
@smtechno
smtechno / justify.css
Created October 17, 2017 23:34
CSS For Justify Post
.post-content p{text-align:justify}
@smtechno
smtechno / autodate.php
Last active October 18, 2017 13:42
Automation Date For Minisite
<span style="font-family: Georgia, Times New Roman, serif; font-size: large;"><span style="color: black;"><span style="font-weight: bold;"><br /></span></span></span><span style="font-family: Georgia, 'Times New Roman', serif; font-size: large; font-weight: bold;">From SOHO :</span><span style="font-family: Georgia, 'Times New Roman', serif; font-size: large;">Faiz Alias</span><br />
<span style="font-family: Georgia, Times New Roman, serif; font-size: large;"><span style="color: black;"><span style="font-weight: bold;">Date:</span>&nbsp;</span><!--mula script tarikh auto-->
<script language="JavaScript">
<!-- Begin
// Get today's current date.
var now = new Date();
// Array list of days.
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
// Array list of months.
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
@smtechno
smtechno / disablerevision.php
Created October 21, 2017 12:02
Function to Disable Revision in WordPress
/*-----this function to disable revision in WordPress----*/
define('WP_POST_REVISIONS', false);
@smtechno
smtechno / limitrevision.php
Created October 21, 2017 15:11
Function to Limit Revision in WordPress
/*-----this function to limit revision in WordPress----*/
define('WP_POST_REVISIONS', 3);
@smtechno
smtechno / anchorpoint.php
Last active October 23, 2017 07:46
Jumps Link (Anchor Point)
<p id="XXX">YYY</p>
@smtechno
smtechno / completeanchorpoint.php
Last active October 23, 2017 06:56
Complete Anchor Point
<p id="minutes-guide">What is Jump Link?</p>
@smtechno
smtechno / clickingjumpslink.php
Created October 23, 2017 06:59
Clicking Jumps Link
@smtechno
smtechno / completeclickinglink.php
Last active October 23, 2017 11:21
Complete Clicking Link