latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Call paypal pro form from theme with php

Home Forums Community Forum Call paypal pro form from theme with php

This topic contains 2 replies, has 2 voices. Last updated by  Mike (Volunteer Moderator) 3 years, 5 months ago.

Topic Author Topic
Posted: Sunday Aug 4th, 2013 at 10:26 pm #55183
huy duong
Username: killdeer

Hi,

I wonder if I can call the paypal pro form in my theme using php. Here is what my intention is

if (current logged in user is level 0)
	display upgrade to level 1 form
else if ( current logged in user is level 1)
	display upgrade to level 2 form
...

I cannot do this within a post with shortcode (I know I can install a plugin to execute php within a post, but I don’t want to use this plugin). I try do_shortcode (‘[s2Member-Pro-PayPal-Form /] but it does not work, and I couldn’t find the right function to call to display the form out.

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Sunday Aug 4th, 2013 at 11:03 pm #55185
huy duong
Username: killdeer

ohh it’s solved. I forget to echo.
It should be ‘echo do_shortcode’

Posted: Monday Aug 5th, 2013 at 12:21 am #55200
Moderator

Thanks for the follow-up.

<?php
echo do_shortcode('[s2Member-Pro-PayPal-Form /]');
Viewing 2 replies - 1 through 2 (of 2 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.