Last active
May 12, 2020 19:38
-
-
Save jreviews/8f3a0b75cd742569bb8bbc05ef69210d to your computer and use it in GitHub Desktop.
Get user profile listing array outside JReviews
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use the Joomla OR the WordPress path, NOT both | |
// Joomla path | |
require_once JPATH_ROOT.'/components/com_jreviews/jreviews/framework.php'; | |
// WordPress Path | |
require_once ABSPATH.'/wp-content/plugins/jreviews/jreviews/framework.php'; | |
S2App::import('Component','userprofiles_profile','jreviews'); | |
S2App::import('Model','everywhere_com_content','jreviews'); | |
// Leave userId param empty to use the logged in user, or pass a user ID | |
$profile = UserprofilesProfileComponent::getOneProfile($userId = null); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment