Skip to content

Instantly share code, notes, and snippets.

View cryptexvinci's full-sized avatar
🏆
Focusing

Towhid cryptexvinci

🏆
Focusing
  • Ultimate Member Group Ltd
  • Bangladesh
View GitHub Profile
@cryptexvinci
cryptexvinci / Customizerref.php
Last active March 29, 2020 05:29
WordPress Customizer Sample Reference
<?php
/**
* WordPress Customizer Comprehensive Reference
* Compiled by @ti_asif
*/
Panel
Section
@cryptexvinci
cryptexvinci / php.ini
Last active January 26, 2017 04:15
Fix: WordPress File Size exceeded. Edit php.ini
upload_max_filesize = 64M
post_max_size = 64M
memory_limit = 400M
file_uploads = On
max_execution_time = 180
@cryptexvinci
cryptexvinci / .htaccess
Created October 24, 2016 11:13
Fix: WordPress File Size exceeded. Edit .htaccess
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value memory_limit 400M
php_value max_execution_time 180
php_value max_input_time 180
@cryptexvinci
cryptexvinci / wp-config.php
Last active October 24, 2016 11:39
Fix: WordPress File Size exceeded. Edit wp-config.php
define('WP_MEMORY_LIMIT', '256M');
@cryptexvinci
cryptexvinci / functions.php
Created November 2, 2016 05:27
Wordpress Child Theme
<?php
add_action( 'wp_enqueue_scripts', 'enqueue_child_theme_styles', PHP_INT_MAX);
function enqueue_child_theme_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
}
?>
@cryptexvinci
cryptexvinci / style.css
Created November 2, 2016 05:28
WordPress child theme style.css
/*
Theme Name: Optimizer Child
Template: optimizer
*/
@cryptexvinci
cryptexvinci / woocommerce_checkout_fields.php
Last active December 13, 2018 05:42
Full list of fields in the array passed to woocommerce_checkout_fields.
/**
* Billing Checkout Fields
*/
billing_first_name
billing_last_name
billing_company
billing_address_1
billing_address_2
billing_city
billing_postcode
@cryptexvinci
cryptexvinci / remove_checkout_fields.php
Last active March 3, 2024 00:43
Remove fields from WooCommerce checkout page.
<?php
add_filter( 'woocommerce_checkout_fields' , 'custom_remove_woo_checkout_fields' );
function custom_remove_woo_checkout_fields( $fields ) {
// remove billing fields
unset($fields['billing']['billing_first_name']);
unset($fields['billing']['billing_last_name']);
unset($fields['billing']['billing_company']);
@cryptexvinci
cryptexvinci / custom_remove_woo_checkout_phone.php
Created March 13, 2017 12:02
Remove billing phone number field from WooCommerce checkout page.
add_filter( 'woocommerce_checkout_fields' , 'custom_remove_woo_checkout_phone' );
function custom_remove_woo_checkout_phone( $fields ) {
// remove billing phone number
unset($fields['billing']['billing_phone']);
return $fields;
}
@cryptexvinci
cryptexvinci / woo_rename_checkout.php
Last active December 20, 2023 09:48
Rename WooCommerce checkout field label & placeholder
<?php
// WooCommerce Rename Checkout Fields
add_filter( 'woocommerce_checkout_fields' , 'custom_rename_wc_checkout_fields' );
// Change placeholder and label text
function custom_rename_wc_checkout_fields( $fields ) {
$fields['billing']['billing_first_name']['placeholder'] = 'Wonka';
$fields['billing']['billing_first_name']['label'] = 'Your Awesome First Name';
return $fields;
}