MemberPress: Shortcode for Account Subscriptions List
function memberpress_account_subs_display( $atts, $content=” ) { if( !class_exists( ‘MeprAccountCtrl’ ) ) { return; } ob_start(); $acct_ctrl = new MeprAccountCtrl(); $action = ( isset($_REQUEST[ ‘action’ ] ) )?$_REQUEST[ ‘action’ ]:false; switch( $action ) { case ‘cancel’: $acct_ctrl->cancel(); break; case ‘suspend’: $acct_ctrl->suspend();…Continue reading