Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Sandesh sandeshjangam

🎯
Focusing
Block or report user

Report or block sandeshjangam

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sandeshjangam
sandeshjangam / product-custom-field-on-checkout.php
Last active Jun 13, 2019
Custom field to product on checkout page
View product-custom-field-on-checkout.php
<?php
/* Add custom domain Field */
add_action('woocommerce_after_order_notes', 'customise_checkout_field');
function customise_checkout_field( $checkout ) {
echo '<div id="cst_add_domain_name">';
woocommerce_form_field(
@sandeshjangam
sandeshjangam / woocommerce-add-new-tab-my-account-page.php
Last active May 3, 2019
WooCommerce - Add New “Tab” at My Account Page
View woocommerce-add-new-tab-my-account-page.php
<?php
/**
* @snippet WooCommerce How To Add New Tab @ My Account
* @how-to Watch tutorial @ https://techiesandesh.com
* @author Sandesh Jangam
* @compatible WooCommerce 3.6.2
* @donate $7 https://www.paypal.me/SandeshJangam/7
*/
/**
@sandeshjangam
sandeshjangam / remove-checkout-filed-example.php
Last active Aug 29, 2018
Remove WooCommerce checkout page fields - sandeshjangam.com
View remove-checkout-filed-example.php
<?php
/* This Code Will Removes "company", "address1" & "address2" Checkout Fields */
add_filter( 'woocommerce_checkout_fields' , 'custom_remove_checkout_fields' );
function custom_remove_checkout_fields( $fields ) {
/* Billing Field */
unset( $fields['billing']['billing_company'] );
unset( $fields['billing']['billing_address_1'] );
unset( $fields['billing']['billing_address_2'] );
@sandeshjangam
sandeshjangam / user-throgh-ftp
Created Jan 11, 2018
Add user in WordPress through FTP
View user-throgh-ftp
<?php
add_action( 'init', 'add_new_user' );
function add_new_user() {
$website = "http://example.com";
$userdata = array(
'user_login' => 'user_name',
'user_url' => $website,
View gist:17e3280558d3748c1c1c7f42562bc13a
add_filter( 'the_excerpt', 'ast_custom_blog_remove_excerpt' );
function ast_custom_blog_remove_excerpt( $content ) {
/* If it is blog page then set $content empty. */
if ( is_home() ) {
$content = '';
}
return $content;
View Debug help function in Core Php's function
<?php
/**
* Create `help-vl.php` in php location and add below code in that file.
* Search `auto_prepend_file` in `php.ini`
* Replace it with file location `auto_prepend_file ="your-location\php\help-vl.php"`
*
*
* /
if ( ! function_exists( 'vl' ) ) :
/**
You can’t perform that action at this time.