14 pointsStarting to get into this DEV thingI'm new here
Debbie
Member
—
15th November 2010 (1 year ago)
Hiya,
I would like a widget on the dashboard of every blog owner in my network showing what kind of subscription they currently have. In example, when they have a free subscription, they get a notice asking if they would like to upgrade to supporter, and when they are a supporter, how many days in their subscription they have left before they should make a payment again.
I did figure out how to put a custom widget on all dashboards, is their some kind of script I can paste in there to show this information to my users?
I would like a widget on the dashboard of every blog owner in my network showing what kind of subscription they currently have. In example, when they have a free subscription, they get a notice asking if they would like to upgrade to supporter, and when they are a supporter, how many days in their subscription they have left before they should make a payment again.
I did figure out how to put a custom widget on all dashboards, is their some kind of script I can paste in there to show this information to my users?
7029 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Lead Developer
—
16th November 2010 (1 year ago)
#
You can use is_supporter() to check if current. You could pull code from the framework file that displays this information on the backend. Basically it's a quick db query then parsing the expiration date into something human readable.
Responses (2)
Lead Developer — 16th November 2010 (1 year ago) #
You can use is_supporter() to check if current. You could pull code from the framework file that displays this information on the backend. Basically it's a quick db query then parsing the expiration date into something human readable.
Member — 16th November 2010 (1 year ago) #
Thanks Aaron, will try that for sure. 'is_supporter()' will come in handy in other situations too.
Become a member