Skip to content

User profile core for embed to other plugins or themes for WordPress

License

Notifications You must be signed in to change notification settings

ramphor/user-profile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

user-profile

User profile core for embed to other plugins or themes for WordPress

How to use

<?php
use Ramphor\User\ProfileManager;

$profileManager = $ProfileManager::init(
  'default_template_directory',
  'template_directory'
);

Register User profile page

If you want create custom user profile page for user you can register user profile via ProfileManager

$slug = 'user-profile-slug';
$profileManager->registerUserProfile($slug);

Example URL: After register custom URL you can access to profile page of user puleeno with custom slug is user-profile-slug has same below format.

https://example.com/user-profile-slug/puleeno

Register My profile page

$uniqueueIdToCreateHookForCustomize = 'puleeno_org';
$profileManager->registerMyProfile($uniqueueIdToCreateHookForCustomize);

After register my profile function you must create new page with content has include the below shortcode.

[{$uniqueID}_user_profile]

Example: In above PHP code you can see my unique ID is puleeno_org. So we has the shortcode.

[puleeno_org_user_profile]

Credits:

About

User profile core for embed to other plugins or themes for WordPress

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published