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
function pmpro_remove_now($cost) | |
{ | |
$cost = str_replace(" now", "", $cost); | |
return $cost; | |
} | |
add_filter("pmpro_level_cost_text", "pmpro_remove_now", 10, 4); |
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 | |
// To use this code, add it to a PMPro Customizations Plugin | |
// https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
// | |
// To add 'Import Membership Enddate' to Members List | |
// | |
//Add 'Import Membership Enddate' Column to Members List Header |
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
/* | |
Redirect away from certain URLs with PMPro. | |
Be careful, the code will redirect any URL *containing* the strings in the $urls array. | |
So e.g., if /not-locked/about/ is public and you have /about/ in the list, it will still be locked down to non-members. | |
*/ | |
function pmpro_hide_urls() | |
{ | |
//make sure PMPro is activated | |
if(!function_exists('pmpro_hasMembershipLevel')) | |
return; |
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 | |
add_filter( 'gettext', 'change_auto_renewal_checkbox_text', 20, 3 ); | |
/** | |
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext | |
*/ | |
function change_auto_renewal_checkbox_text( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case 'Yes, renew at %s' : | |
$translated_text = __( 'NEW TEXT HERE', 'pmpro' ); | |
break; |
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 | |
//Add from here down to the bottom of your PMProcustomizations plugin | |
function my_pmprorh_init() { | |
// don't break if Register Helper is not loaded. | |
if ( ! function_exists( 'pmprorh_add_registration_field' ) ) { | |
return false; | |
} |
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 | |
//Add from here down to the bottom of your PMProcustomizations plugin | |
function my_pmprorh_init() { | |
// don't break if Register Helper is not loaded. | |
if ( ! function_exists( 'pmprorh_add_registration_field' ) ) { | |
return false; | |
} |
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 | |
//Add from here down to the bottom of your PMPro Customizations plugin | |
add_action('pmpro_formatted_address', 'pmpro_custom_members_list_address', 10, 9); | |
function pmpro_custom_members_list_address( $address, $name, $address1, $address2, $city, $state, $zip, $country, $phone ) { | |
$address = ''; | |
if ( ! empty( $name ) ) { | |
$address .= $name . '<br/>'; |
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 | |
/* | |
* To add 'Next Billing Date' to Members List | |
*/ | |
//Add 'Next Billing Date' Column to Members List Header | |
function my_pmpro_memberslist_extra_cols_header($theusers) | |
{ | |
?> | |
<th><?php _e('Next Billing Date', 'pmpro');?></th> | |
<?php |
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
#lang racket | |
(define const? number?) | |
(define var? symbol?) | |
(define (ev σ θ e) | |
(match e | |
[(? const? e) (cons σ e)] | |
[(? var? e) (cons σ (hash-ref θ e))] | |
; Comma here matches any var |
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
[ | |
{ | |
"name": "Checker Me Up", | |
"description": "Pawns Start in a Checker Board Formation", | |
"newBoard": "RNBQKNBRP*P*P*P**P*P*P*PP*P*P*P*p*p*p*p**p*p*p*pp*p*p*p*rnbqknbr" | |
}, | |
{ | |
"name": "Horse Spies", | |
"description": "Sneaky Horsies", | |
"newBoard": "nNBQKBNnPPPPPPPP********************************ppppppppNnbqkbnN" |
OlderNewer