You said that KingComposer will accept PHP blocks.
This will generate a link to the current logged-in user’s author page:
<?php
$author_page = is_user_logged_in() ? get_author_posts_url( get_current_user_id() ) : NULL;
$acc_pay_page = $author_page ? add_query_arg( 'screen', 'acc_pay', $author_page ) : NULL;
if ( $acc_pay_page) {
echo '<a href="' . esc_url( $acc_pay_page ) .'"><img src="account_page_page.png" /></a>';
} else {
echo '<span>Please log in</span>';
}
?>
Related Posts:
- How to make current user’s avatar + display name link to their profile?
- How to create a link to a user’s profile page
- Make display name unique
- How to create a public profile for authors/contributors/users?
- Force users to complete their profile after they register? How to
- Upload gravatar in WP profile?
- add ‘file upload’ field to user details
- Completely hide user info
- Drop down list in user profile page
- Custom style on profile options page
- Add custom fields to the user profile
- Cannot set user passwords
- Is there any function available to echo current user’s profile url?
- How to add local users to wordpress without email password?
- Disable user profile editing for one user
- how to make a profile entry read only except for site managers [closed]
- Forcing WordPress to work differently
- Remove user profile field [duplicate]
- How to add a user profile page to frontend?
- Is there a way to make custom fields only editable by administrators?
- Including users in insert link internal link search in Gutenberg
- Editable registration date field in user profile
- Profile page for user roles
- User profile updates password even if not filled (Theme my login) in Firefox? [closed]
- How to Create a User Profile Page?
- Prevent subscribers to changing certain profile fields
- Creating User Profiles using author.php
- Create a “user log”
- How to display text if profile fields are not filled?
- What is correct way to change user’s email?
- How to set all external links from a certain user to “nofollow”?
- How to hide user profile fields based on the role of the viewed user?
- Give users alternative/second avatar that is rectangle sized
- User can manage one page accessible by everyone?
- redirect user to their profile after log in
- How to display all user profile info in myaccount page wordpress
- How to add extra field in profile page and show in myaccount?
- WordPress 5.8 – Hide or Remove personal fields from admin Profile page
- How do I update user email from frontend input field?
- How to display extra fields for user
- How can i display pagination in custom comment list?
- How can i add user display name drop down menu in frontend?
- How to create page for user?
- How to make custom user profile page public?
- update custom field user profile from front end form
- Require confirmation of current user’s email before updating database and before send_email_change_email
- Showing extra profile fields in admin – problem with underscore
- Restrict Access to the User Profile
- Add an ‘edit profile’ page with Genesis
- Manage user profiles with WordPress
- Separate Profiles for Users
- Fetching posts that match a User Profile setting
- Validate user meta and redirect
- Designing a member area on my site
- Storing additional information about the user
- Modify Profile Biographical Info Field
- How to create front-end (editable) WordPress user profile pages?
- Securely log in a user without a password using a link?
- Disable editing profile for second time
- What techniques can a user employ to achieve a password rated “strong” in the WordPress password checker
- Cant edit profile from frontend
- Can we get user profile page using user_id in the URL?
- Difference between update_user_meta and update_user_option
- How to get WordPress Username in Array format
- Display user registration date
- Where to Store Custom User Fields
- Redirect after User Activation [closed]
- How to keep track of user logins?
- Mass delete spam accounts
- Navigation link to specific user page
- WP_User->add_role producing unexpected results
- Post as someone else
- How to make user accept license agreement before download
- Users: List A to Z, for Users
- How to link avatar and nickname to profile
- WPML Default Language User Meta [closed]
- Multiple Unique Author Profiles
- Search Users base on meta_value & meta_key
- Modify user profile data through scripting?
- How to stop redirect if user is already on correct page (Using Case Switch)
- How to activate the user search
- How change user type from contributor to author
- Preventing user enumeration: which logic is better?
- How can I do a url redirect to include a wordpress username?
- Can I Create a Second Admin Level User Role?
- Custom registration and pending approval
- How would I restrict certain user levels from editing categories
- How can I set wp_dropdown_users so that it shows only authors?
- Restricting wordpress login sessions for a web app
- Create users by importing from CSV, with User ID assigned from CSV
- User Group Level Login
- Limit user description length in characters
- Auto approve new users if their username is included in a predefined list
- How to update user meta from php file?
- add a Custom Columns to user
- get_user_by asking for string while string is given
- User email not being changed (cached?) until next page load (frontend)
- Show only users with the same role in Dashboard user list
- Add custom input field in new user page
- How to authenticate/verify login credentials & check for user meta without logging in?