Skip to content

Instantly share code, notes, and snippets.

@spythemes
spythemes / ps-gateways-per-period-for-top-selector.php
Last active November 21, 2018 13:00 — forked from wpmudev-sls/ps-gateways-per-period.php
[Pro Sites] - Hides the second available gateway when the Monthly and Quarterly periods are selected
<?php
/**
* Plugin Name: [Pro Sites] - Gateways Per Period
* Plugin URI: https://premium.wpmudev.org/
* Description: Hides the second available gateway when the Monthly and Quarterly periods are selected
* Author: Panos Lyrakis @ WPMUDEV (modified by Adam Czajczyk)
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
@spythemes
spythemes / code.php
Created December 16, 2016 19:22 — forked from bappi-d-great/code.php
WPMU Membership2: Shortcode show all members and memberships
<?php
/**
* ShortCode to use: [ms-members-details]
*/
add_shortcode( 'ms-members-details', 'ms_members_details' );
function ms_members_details()
{
$html = '<table cellpadding="0" cellspacing="0">';
$html .= '<tr>';
$html .= '<td><b>User ID</b></td>';
@spythemes
spythemes / code.php
Last active November 24, 2016 21:58 — forked from bappi-d-great/code.php
WPMU M2 add more sortable bp xprofile column in all members table
<?php
/**
* Set BP xProfile fields in line 16: $this->_bp_fields = array( 'Gender', 'Gwint', 'True Color' );
*/
if( ! class_exists( 'Make_M2_Member_Column_Sortable_BP' ) )
{
class Make_M2_Member_Column_Sortable_BP
{