WordPress User Profile Shortcodes - ProfilePress

Global Shortcodes

The following are shortcodes available for use anywhere on your WordPress sites or when building forms with the Advanced shortcode builder.

[pp-password-hint]

Displays the text suggesting how to create strong passwords.

[pp-user-cover-image]

Displays the profile cover-image of users.

Below are supported shortcode attributes.

Attribute Description
user Specify user ID. Defaults to the currently logged-in users if empty.
class Specify the class name for the field.
id Specify the unique id for the field.
alt Specify an alternate text for the image.

[link-login]

Displays the link to the login page.

[link-registration]

Displays the link to the user registration page.

[link-lost-password]

Displays the link to the reset password page.

[link-my-account]

Displays the link to the My Account page.

Below are supported shortcode attributes.

Attribute Description
label Link label or anchor text.
class Specify the class name for the field.
id Specify the unique id for the field.
raw If true, the registration page URL is returned.

[pp-redirect-logged-in-users]

Redirects logged-in users that try to access a post with the shortcode to the login page or specified URL.

[pp-redirect-non-logged-in-users]

Redirects non-logged-in users that try to access a post with the shortcode to the login page or specified URL.

Below are supported attributes for the above shortcodes.

Attribute Description
url Specify the URL to redirect unauthorised users to. Defaults to the login page if not specified.