This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Uninstall process | |
#remove valet | |
rm -rf ~/.valet | |
rm ~/usr/local/bin/valet | |
# change the permisions on all brew files | |
sudo chown -R $(whoami) $(brew --prefix)/* | |
# now uninstall all brew packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* Bootstrap Utilities v5.0.0-beta3 (https://getbootstrap.com/) | |
* Copyright 2011-2021 The Bootstrap Authors | |
* Copyright 2011-2021 Twitter, Inc. | |
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) | |
*/.clearfix::after{display:block;clear:both;content:""}.link-primary{color:#0d6efd}.link-primary:focus,.link-primary:hover{color:#0a58ca}.link-secondary{color:#6c757d}.link-secondary:focus,.link-secondary:hover{color:#565e64}.link-success{color:#198754}.link-success:focus,.link-success:hover{color:#146c43}.link-info{color:#0dcaf0}.link-info:focus,.link-info:hover{color:#3dd5f3}.link-warning{color:#ffc107}.link-warning:focus,.link-warning:hover{color:#ffcd39}.link-danger{color:#dc3545}.link-danger:focus,.link-danger:hover{color:#b02a37}.link-light{color:#f8f9fa}.link-light:focus,.link-light:hover{color:#f9fafb}.link-dark{color:#212529}.link-dark:focus,.link-dark:hover{color:#1a1e21}.ratio{position:relative;width:100%}.ratio::before{display:block;padding-top:var(--bs-aspect-ratio);content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Filters | |
function edit_classroom_header_html ($html, $classes, $back_url){ // header | |
} | |
add_filter('mpcs_classroom_header', 'edit_classroom_header_html', 10, 3); | |
function edit_classroom_sidebar_html ($html){ // sidebar | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function enqueue_my_styles(){ | |
wp_enqueue_style('my_styles', plugin_dir_url(__FILE__) . 'mystyles.css', array(), '1.0.0', false); | |
} | |
add_action('wp_enqueue_scripts', 'enqueue_my_styles', 101); // Priority should start from 101 and above |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: php:7.1.29 | |
pipelines: | |
default: | |
- step: | |
name: "Build and Test" | |
script: | |
- apt-get update | |
- apt-get install -y zip | |
- mkdir dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: GP Ecommerce Margin | |
Plugin URI: https://figarts.co | |
*/ | |
/** You may noe start coding! **/ | |
class GPECF_Margins { | |
private static $instance = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Woocommerce Styles */ | |
.woocommerce-message { display: none; } | |
.woocommerce-cart.full-width-content .content, | |
.woocommerce-checkout.full-width-content .content { max-width: 100%; } | |
.woocommerce-cart .woocommerce table.shop_table td.actions { | |
border-top: 1px solid #e6e6e6; | |
background: #f7f7f7; | |
border-bottom: 0px solid #e6e6e6; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'woocommerce_created_customer', 'figarts_make_customers_vendors', 10, 2 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Turn all subscribers into Woo Vendors | |
*/ | |
function figarts_make_customers_vendors( $user_id, $user_data ) { | |
if (!defined('WC_PRODUCT_VENDORS_TAXONOMY')){ | |
return; |
NewerOlder