Share extrafields with other plugins | General Discussion | Support Forum

A A A

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Share extrafields with other plugins
April 27, 2017
1:53 pm
jlohl
Member
Members
Forum Posts: 3
Member Since:
April 27, 2017
sp_UserOfflineSmall Offline

Hi,

I’m using AWPCP with Buddypress and Extrafields extensions.

I’d like to share extrafields values with another wordpress plugin. 

As an example, I have an extrafield named “company” with value $x_company_value. If I print $x_company_value within an ad page, it shows the correct value. But if I try to show it onto another page, I get nothing. I suppose that this variable is local and only valid within awpcp pages. So maybe a solution could be to set extrafield variables as global variables. I tried to declare those variables as globals into theme’s function.hp with no success. I also had a look to awpcp customization guide but got no idea.

I have limited skills in php so I ask how and where would you do it ? Or maybe there could be another or better way to share awpcp variables especially extrafields ?

Thanks for any help.

JL

April 27, 2017
2:02 pm
jlohl
Member
Members
Forum Posts: 3
Member Since:
April 27, 2017
sp_UserOfflineSmall Offline

To be more precise, I only need to read awpcp variables values not write it.

Thanks

JL

April 29, 2017
12:21 am
AWPCP Support
Moderator
Members

Moderators
Forum Posts: 4474
Member Since:
September 4, 2013
sp_UserOfflineSmall Offline

Hi JL,

Here is our customization article that should guide you with this https://awpcp.com/documentation/customization-guide/

April 29, 2017
4:04 am
jlohl
Member
Members
Forum Posts: 3
Member Since:
April 27, 2017
sp_UserOfflineSmall Offline

Here is our customization article that should guide you with this https://awpcp.com/documentation/customization-guide/  

Hi Support,

thanks but I said in my first post that this customization guide was not really clear enough to me : which hook or filter should I use to declare extrafield variables as globals ?

Thanks

JL

Forum Timezone: America/Denver

Most Users Ever Online: 163

Currently Online:
12 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Johnny B: 140

godie: 120

laburke: 94

NAIN KHAN: 93

salvig67: 84

kerdezo: 82

rude: 72

purplepaula: 72

WAYTOBAYWTB52: 71

gery: 71

Member Stats:

Guest Posters: 28

Members: 36717

Moderators: 2

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 6507

Posts: 29329

Newest Members:

Andrzej, Zoey Ravenswood, Kelum Jayasinghe, Zygfryt, geknns, Om prakash Raman, ocho, Mohammad Arshad, Stefano, mustang66

Moderators: awpcp: 7530, AWPCP Support: 4474

Administrators: wpengine: 0, awpcp: 298

Skip to toolbar