Looking For Something?

[wps-user-id]

Purpose

Outputs the user ID of the current user, or if on a profile page, that user ID.

Availability

Provided in the Core Plugin.

Customising

You can use the global shortcode settings via WPS Pro->Shortcodes in the admin dashboard, or add them to the shortcode as options.

Example

To output the user’s ID in a link, for example, you would do the following (this is the HTML version):

<a href="/go-to-this-page?user_id=[wps-user-id]">Go to this page with user ID as a parameter</a>

 

Options

The following (which shows default values and an example of using the shortcode option) can be set via the admin dashboard (WPS Pro->Shortcodes) or added as options to the shortcode in your WordPress page, post or widget.

There are no further options.

Sidebar