Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Getting $curauth->ID to work inside a shortcode

/wp-admin/user-edit.php starting on line 99.

Just check the hooks and filters there and how $profileuser get’s called.

(Pay attention on the switch.) 🙂

Related Posts:

  1. Permalink to user profile
  2. Creating distinct pages for author profiles and lists of posts by author
  3. Author profile visitors in last 7 days in front end without plugins
  4. Remove /author/ from the author profile url
  5. How to link avatar and nickname to profile
  6. How to link to the current User/Author Profile page?
  7. Multiple Unique Author Profiles
  8. Custom avatar image link added to the profile page
  9. How to get all possible arguments for a wordpress function
  10. Is author.php a core file?
  11. Declare global var from Template File and use it in Functions.php
  12. Variable undefined but it is defined
  13. Show infos only to the author in the author.php
  14. Author.php display profile for all types of users
  15. Profile Field In Admin Bar
  16. How to check if a user (not current user) is logged in?
  17. How to remove the author pages?
  18. How to get a buddypress user profile link and a certain user profile field for the current post author?
  19. Select subscriber as author of post in admin panel?
  20. Echo author ID in author.php
  21. Woocommerce: assign an “author” to a product
  22. How can HTML be allowed in Author Bio?
  23. Programatically change post author
  24. How to display a public profile page for registered users with custom slug?
  25. Restrict one post per author
  26. How to get author’s name by author’s id
  27. Author page: Comments and Ratings?
  28. Give Author users the right to embed
  29. How to get post author name by its ID inside a function?
  30. How can I publish a post with two or more authors?
  31. If Else Gravatar Author Picture
  32. Get attachment ID of author_meta image – Attachment Metadata
  33. Displaying custom post types in author.php
  34. Add rewrite endpoint to author page + pagination
  35. Order the users by the date of their latest post
  36. What’s a good way to put authors into groups
  37. Show Author in custom rss feed
  38. What is the difference between user_description and description?
  39. How can an author be subscribed to the posts of another author and receive notifications of the new posts?
  40. No authors in change author dropdown
  41. Show author archive pages for authors with no posts
  42. More posts from the current author
  43. List authors of site with link and gravatar
  44. How we can get the author ID by its Name
  45. How to hide posts count and posts of other users from edit.php for contributors and authors
  46. User Published Post Count
  47. Custom size for image uploaded to custom field in user profile?
  48. What capability allows someone to change a page’s/post’s author?
  49. How to get posts without author?
  50. Allow Content Author to Publish, But Not Edit or Delete
  51. Just wanted to Pull Author’s Link
  52. Making WordPress author follow button, need missing ingredient
  53. list author’s posts in author.php
  54. Completely hide user info
  55. Get only the author profile picture image url inside a loop
  56. Get the comment author ID by the comment ID
  57. How To Remove The Author(s) From Certain Posts
  58. Is it possible to set/override default the_author_posts_link to login name?
  59. add capability to author role to be able to delete attachments
  60. Google Authorship on a multi-author blog?
  61. Replace Gravatar with img URL for avatars
  62. Change author base slug to user role
  63. Get the excerpt for a post created by the related author
  64. Custom Author Fields + Existing Taxonomy – Integrating the Two Dynamically?
  65. Display Author role in archive or author page
  66. Author must complete profile info before they can publish a post?
  67. How to Add Author Editing Capability to Existing Post by Admin
  68. WordPress Author Page
  69. get the username of a user in his author page
  70. Editing the loop for Author pages
  71. What is wrong with this code?
  72. Limit REST API output to current logged in user that is also author of the content
  73. Display only entire most recent post on author page?
  74. I only want to Display Author Link in authors bio
  75. How can I add “posted by ‘author'” to each post?
  76. Is it possible to get_terms by author?
  77. no emails for a user account
  78. Is there any function available to echo current user’s profile url?
  79. Author list ‘special’ author first then ‘normal’ author
  80. hide something in single page if current author has only one post
  81. Show selected value in a drop down menu
  82. Can I stop authors from changing the font in their post?
  83. Author page doesn’t change after username change [duplicate]
  84. Custom Author Loop
  85. Output author and description if description is not empty
  86. get_the_author_meta( $field, 0 ) returns the administrator $field
  87. WP authors page
  88. Send transactional email: first user’s post
  89. Showing author’s page with no posts
  90. Show woocommerce products in author archive
  91. Author bio Social Links
  92. Plugin for an author bio popup box?
  93. WordPress comments on users profile
  94. Comments do not respect display_name setting, how to make plugin to overcome this
  95. Author website URL
  96. Author custom fields post meta, the code?
  97. How to update author display name on blog posts based on user role
  98. How can I get the author description’s excerpt?
  99. Change destination of author link to BuddyPress member profile
  100. Filter Author Bio
Categories author Tags author, globals, logo, profiles
Image upload appearing as broken images following server move
Options for authenticated feeds

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress