Skip to content

Instantly share code, notes, and snippets.


Eileen Violini eviolini

Block or report user

Report or block eviolini

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
eviolini / pmpro-email-as-username.php
Last active Sep 6, 2019
Have members use their email address for logging in to your website powered with Paid Memberships Pro
View pmpro-email-as-username.php
<?php // Do not include in PMPro Customizations plugin
* Have members use their email address for logging in to your website powered with Paid Memberships Pro
* Paste the code below into a PMPro Customization Plugin:
add_filter( 'gettext', 'wordpress_login_gettext', 20, 3 );
function wordpress_login_gettext( $translated_text, $text, $domain ) {
eviolini / pmpro-register-helper-example-fields.php
Created Sep 5, 2019 — forked from pbrocks/pmpro-register-helper-example-fields.php
These examples show the range of possibilities, including the 'niche' options, for fields used in Paid Memberships Pro's Register Helper Add-On.
View pmpro-register-helper-example-fields.php
<?php // Do not include this or the doc block if adding to a Customizations plugin
* Add this to its own folder in your plugins directory or copy the code below this doc block to a Customizations Plugin and customize to suit your needs.
* Plugin Name: PMPro Register Helper Examples
* Description: Create a folder name in your plugins' folder with the same name as this filename, but without the .php extension. Save this file in that folder and then you can activate this plugin in your WordPress dashboard,
* Author: pbrocks
* Author URI:
View wps_load_scripts.php
add_action( 'wp_enqueue_scripts', 'wps_load_scripts' );
* Enqueue Isotope
* For commercially developed child themes, you must obtain a license
* from for approx. $25.
* @author Travis Smith
* @link
eviolini / functions.php
Created Aug 3, 2019 — forked from hlashbrooke/functions.php
Seriously Simple Podcasting: Remove 'Download file' link from episode meta data
View functions.php
add_filter( 'ssp_episode_meta_details', 'ssp_remove_download_link', 10, 3 );
function ssp_remove_download_link ( $meta, $episode_id, $context ) {
unset( $meta['link'] );
return $meta;
eviolini / ssp-podcast-category.php
Last active Jul 23, 2019
Add category support to Seriously Simple Podcasting Plugin
View ssp-podcast-category.php
Add categories support to the SSP plugin. Include this code in a blank customizations plugin for your site. If you already have a plugin, do not add the php opening tag in line one, only add code beginning at line 6.
add_action( 'pre_get_posts', 'ssp_add_podcast_to_category_archives' );
function ssp_add_podcast_to_category_archives( $query ) {
if ( is_admin() ) {
eviolini / banner-warning-for-expireds.php
Created Jun 21, 2019 — forked from pbrocks/banner-warning-for-expireds.php
Add a banner message to the top of your site to let members know that their membership has expired.
View banner-warning-for-expireds.php
* Add a banner message to the top of your site to let members know that their membership has expired.
// Let's build the banner message to display if member expired.
function extra_warning_for_renewal( $input ) {
global $pmpro_pages;
$target = get_permalink( $pmpro_pages['levels'] );
$message = 'Hi ' . $input['display_name'] . '. Your ' . ( ( $input['message'] ) ? $input['membership_name'] . ' subscription, expired on ' . $input['enddate'] . ' <a class="button-primary" href="' . esc_url( $target ) . '">' . $input['message'] . '</a>' : '' );
eviolini / my_pmpro_after_change_membership_level.php
Created Jun 21, 2019 — forked from strangerstudios/my_pmpro_after_change_membership_level.php
Only allow users to use the trial level once with Paid Memberships Pro.
View my_pmpro_after_change_membership_level.php
Only allow users to use the trial level once.
Add this code to your active theme's functions.php
or a custom plugin.
Be sure to change the $trial_level_id variable in multiple places.
//record when users gain the trial level
function my_pmpro_after_change_membership_level($level_id, $user_id)
eviolini / change-level-only-when-user-expires.php
Last active Jun 21, 2019 — forked from andrewlimaza/change-level-only-when-user-expires.php
Change user's membership level only when a user expires from a specific level.
View change-level-only-when-user-expires.php
* Change membership level for users expiring from startup level, moving them to primary level.
* Users can cancel their membership level after their before or after the membership level change.
function wbon_change_default_level_when_expiring_startup( $user_id, $level_id ) {
global $wpdb;
View pmpro-sponsored-members-workaround-for-expiring-discount-code.php
If a parent account checks out and distributes the discount code to 3/10 of its child accounts,
the parent account should still have 7 remaining. This 7 remaining uses should persist after a
renewal by the parent account.
By default the discount codes have an expiration period of one year.
Even if they renew, the discount code expiration date is not updated.
We are hard coding the start and end date of the discount code itself in the function pmprosm_createSponsorCode()
eviolini / entry-title-remove.css
Last active Jun 10, 2019
Removes the page title from Gutenberg home page
View entry-title-remove.css
header.entry-header {
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
body #page {
You can’t perform that action at this time.