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 | |
/** | |
* Send admin notification to a different email address | |
*/ | |
function affwp_custom_registration_admin_email( $email ) { | |
// add the email here | |
$email = '[email protected]'; | |
return $email; |
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: Affiliate role on registration | |
*/ | |
function pw_affwp_set_role_on_registration( $affiliate_id = 0 ) { | |
$user_id = affwp_get_affiliate_user_id( $affiliate_id ); | |
$user = new WP_User( $user_id ); | |
$user->add_role( 'affiliate' ); |
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: AffiliateWP - Restrict Referral Creation To Specific PMS Subscription Plans | |
* Plugin URI: http://affiliatewp.com | |
* Description: Allows you to restrict referral creation to specific PMS subscription plans | |
* Author: Tunbosun Ayinla, tubiz | |
* Author URI: https://bosun.me | |
* Version: 1.0 | |
*/ |
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
// Hat tip to Gary Jones (@GaryJ) for providing the explanation | |
// on what was happening and the code on how to change it. | |
add_filter( 'genesis_markup_entry-title_open', 'gmj_replace_widget_element' ); | |
add_filter( 'genesis_markup_widget-entry-title_close', 'gmj_replace_widget_element' ); | |
function gmj_replace_widget_element( $string ) { | |
return str_replace( 'h4', 'h2', $string ); | |
} |
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
/* Home Featured Post widget - | |
using Genesis Featured Widget Amplified | |
--------------------------------------------- */ | |
.home-featured-posts .featuredpost { | |
clear: both; | |
} | |
.home-featured-posts .featuredpost .widgettitle { | |
border-top: 1px solid #1c1c1c; | |
background-color: #fff; |
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
/* Home Featured Post widget - | |
using Genesis Featured Widget Amplified plugin | |
--------------------------------------------- */ | |
.home-featured-posts .featuredpost { | |
clear: both; | |
} | |
.home-featured-posts .featuredpost .widgettitle { | |
border-top: 1px solid lighten($black, 11); | |
background-color: $white; |
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
*/ | |
/* Home Featured Post widget - | |
using default Genesis Featured Posts widget | |
--------------------------------------------- */ | |
.home-featured-posts .featured-content { | |
clear: both; | |
} | |
.home-featured-posts .featured-content .widgettitle { | |
border-top: 1px solid #1c1c1c; |
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
/* Home Featured Post widget - | |
using default Genesis Featured Posts widget | |
--------------------------------------------- */ | |
.home-featured-posts .featured-content { | |
clear: both; | |
} | |
.home-featured-posts .featured-content .widgettitle { | |
border-top: 1px solid lighten($black, 11); | |
background-color: $white; |
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
.header-image .site-title a { | |
background: url(images/logo.svg) center center no-repeat; | |
float: left; | |
min-height: 60px; | |
width: 100%; | |
@include media($medium-screen-up) { | |
background-position: left center; | |
} | |
} |
NewerOlder