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: Easy Digital Downloads - Variable Pricing License Activation Limits | |
Plugin URL: http://easydigitaldownloads.com/extension/ | |
Description: Limit the number of license activations permitted based on variable prices | |
Version: 1.0 | |
Author: Pippin Williamson | |
Author URI: http://pippinsplugins.com | |
Contributors: mordauk | |
*/ |
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
//Load members list on research centre pages | |
//Build list of users based on research centre slug | |
function research_centre_member_function() { | |
global $post; | |
$ancs = get_ancestors($post->ID, 'page'); | |
if(($ancs[1] == 128) || ($ancs[1] == 136) || ($ancs[1] == 138)) { | |
global $wpdb; | |
$slug = basename(get_permalink()); | |
//Build array to match permalink slug to profile field value | |
$centre_array = array( |