PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Custom post type page for "Login Welcome" instead of a Page?

s2Member Plugin. A Membership plugin for WordPress®.

Custom post type page for "Login Welcome" instead of a Page?

Postby skinnytires » June 15th, 2011, 3:25 pm

I'm looking to assign the "Login Welcome Page" and "Membership Options Page" to custom post type pages I've created rather than to standard Pages (and preferably do it programatically). Within S2Member's general options a user is presented with select menus showing a list of Pages.

In my theme I am automatically generating the (custom post type) pages to be used for "Login Welcome Page" and "Membership Options Page" when the theme is first installed.

Now I am looking to:

Option A) Preferably, also within my theme functions: auto assign "Login Welcome Page" and "Membership Options Page" to the new specific custom post type pages I had just created on theme installation.

Option B) If A above is not possible, at least change the 'Pages' select menu to include custom post type pages so that the user could manually assign these pages.

So I was wondering:

1) Is this possible?

2) I assume if it is, it requires S2Member API / WP Hooks & Filters. I looked through /s2member/includes/classes/ as suggested via the S2Member API / WP Hooks & Filters info but am not seeing the set up options...

I've searched these forums and Google with little luck. Am I on the right course?

Thanks so much!
User avatar
skinnytires
Registered User
Registered User
 
Posts: 13
Joined: June 13, 2011

Re: Custom post type page for "Login Welcome" instead of a P

Postby Cristián Lávaque » June 15th, 2011, 8:51 pm

Would the Special Redirection URL for the Login Welcome Page help you? WP Admin -> s2Member -> General Options -> Login Welcome Page -> Special Redirection URL
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Custom post type page for "Login Welcome" instead of a P

Postby skinnytires » June 20th, 2011, 7:30 pm

Thanks Cristian for your help. Yeah that solves it using the "Option B" approach. I guess Option A 's approach of programattically defining these "Login Welcome Page" and "Membership Options Page" settings is not possible?

Thanks much!
User avatar
skinnytires
Registered User
Registered User
 
Posts: 13
Joined: June 13, 2011

Re: Custom post type page for "Login Welcome" instead of a P

Postby Cristián Lávaque » June 20th, 2011, 10:39 pm

Maybe it is, I'm not fully sure I understand what/how you want to do it. You could search s2Member's hooks in the documentation or even WordPress' hooks and use s2Member functions in your new actions.

s2Member's code documentation
http://adambrown.info/p/wp_hooks
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron