Skip to content

Instantly share code, notes, and snippets.

View Ahigh4life's full-sized avatar

Ayo Ahigh4life

  • Techmax
  • Nigeria
View GitHub Profile
@Ahigh4life
Ahigh4life / functions.php
Created April 8, 2021 18:30 — forked from webtoffee-git/functions.php
Make order status completed when an order is placed - WebToffee WooCommerce Subscriptions
add_action( 'woocommerce_order_status_processing', 'processing_to_completed');
function processing_to_completed($order_id){
$order = new WC_Order($order_id);
$order->update_status('completed');
}
@Ahigh4life
Ahigh4life / style.css
Created March 31, 2019 14:17 — forked from agusmu/style.css
WooCommerce - One Column Checkout
/* one column checkout page */
.woocommerce #customer_details.col2-set .col-1, .woocommerce-page #customer_details.col2-set .col-1,
.woocommerce #customer_details.col2-set .col-2, .woocommerce-page #customer_details.col2-set .col-2 {
clear: both;
float: none !important;
width: 100% !important;
margin-right:0 !important;
text-align: left;
padding-bottom: 20px;
}
@Ahigh4life
Ahigh4life / remove_checkout_fields.php
Created March 31, 2019 14:16 — forked from cryptexvinci/remove_checkout_fields.php
Remove fields from WooCommerce checkout page.
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']);
unset($fields['billing']['billing_address_1']);
unset($fields['billing']['billing_address_2']);
@Ahigh4life
Ahigh4life / media-query.css
Created November 21, 2018 16:01 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
=============================
**http://kickass.to/infiniteskills-learning-jquery-mobile-working-files-t7967156.html
**http://kickass.to/lynda-bootstrap-3-advanced-web-development-2013-eng-t8167587.html
**http://kickass.to/lynda-css-advanced-typographic-techniques-t7928210.html
**http://kickass.to/lynda-html5-projects-interactive-charts-2013-eng-t8167670.html
**http://kickass.to/vtc-html5-css3-responsive-web-design-course-t7922533.html
*http://kickass.to/10gen-m101js-mongodb-for-node-js-developers-2013-eng-t8165205.html
*http://kickass.to/cbt-nuggets-amazon-web-services-aws-foundations-t7839734.html
@Ahigh4life
Ahigh4life / .gitignore
Created June 4, 2018 22:39 — forked from c31ck/.gitignore
Drupal .gitignore file
# Ignore configuration files that may contain sensitive information.
*/sites/*/settings*.php
*/sites/*/*.settings.php
*/sites/local.sites.php
# Ignore paths that contain user-generated content.
# */sites/*/files
# */sites/*/private
# Ignore editor specific files.
nbproject
.idea
@Ahigh4life
Ahigh4life / woocommerce-login-logout-redirects.php
Created February 4, 2018 21:09 — forked from gbot/woocommerce-login-logout-redirects.php
WP: Redirect to home page for WooCommerce login and logout. #ST3
/*----------------------------------------------------------------------------*/
// redirects for login / logout
/*----------------------------------------------------------------------------*/
add_filter('woocommerce_login_redirect', 'login_redirect');
function login_redirect($redirect_to) {
return home_url();
}
@Ahigh4life
Ahigh4life / Activate Font Awesome
Created February 1, 2018 22:45 — forked from rachelmccollin/Activate Font Awesome
WPMUDEV Creating Menu Icons
<?php
function wmpudev_enqueue_icon_stylesheet() {
wp_register_style( 'fontawesome', 'http:////maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css' );
wp_enqueue_style( 'fontawesome');
}
add_action( 'wp_enqueue_scripts', 'wmpudev_enqueue_icon_stylesheet' );
?>