View memberpress-courses-classroom-hooks.php
<?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 | |
View add-scripts-to-classroom.php
<?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 |
View pluginette-wp-bitbucket-pipeline.php
image: php:7.1.29 | |
pipelines: | |
default: | |
- step: | |
name: "Build and Test" | |
script: | |
- apt-get update | |
- apt-get install -y zip | |
- mkdir dist |
View gp-enable-margin-on-discount.php
<?php | |
/* | |
Plugin Name: GP Ecommerce Margin | |
Plugin URI: https://figarts.co | |
*/ | |
/** You may noe start coding! **/ | |
class GPECF_Margins { | |
private static $instance = null; |
View better-woocommerce-cart-checkout-styles.css
/* 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; |
View vendor-managers-customers-fire.php
add_action( 'woocommerce_created_customer', 'figarts_make_customers_vendors', 10, 2 ); |
View vendor-managers-customers.php
/** | |
* Turn all subscribers into Woo Vendors | |
*/ | |
function figarts_make_customers_vendors( $user_id, $user_data ) { | |
if (!defined('WC_PRODUCT_VENDORS_TAXONOMY')){ | |
return; | |
} |
View vendor-managers-fire.php
add_action( 'user_register', 'figarts_make_users_vendors_wrapper', 10, 1 ); |
View vendor-managers.php
/** | |
* Turn all subscribers into Woo Vendors | |
*/ | |
function figarts_make_users_vendors( $user_id ) { | |
if (!defined('WC_PRODUCT_VENDORS_TAXONOMY')){ | |
return; | |
} |
NewerOlder