Jump to content
Sign in to follow this  
Guest MrLeN

$10 Show me how to use this code.

Recommended Posts

Guest MrLeN

My WordPress theme has the ability for people to login with facebook (by clicking a  button)..

I contacted the people who made my WordPress theme and asked them for some code that tells me if someone is logged in via the Facebook login button or via WordPress.

they gave me a link to this code:

https://gist.github.com/seventhqueen/70a8131d9643988200dafe3959f6fde8

I don't understand it.

I need that code to echo:

"The user is logged in with facebook"

or

"The user is not logged in with facebook"

I'll give $10 to anyone who can show me to to get the code to echo that.





 

Share this post


Link to post
Guest MrLeN

Oh the theme developer gave me the code.

Add this to the end :)

if ( sq_is_facebook_user() ) { echo 'Is Facebook user'; } else { echo 'Is WordPress user'; } 

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.