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

Modifying the wordpress login page and then referencing it with a shortcode problem

wp_login_form is completely separate from wp-login.php – the login_form hook only applies to the latter.

For the former, you’ve got three filters at your disposal:

  1. login_form_top – return HTML to be injected right after the opening <form /> tag
  2. login_form_middle – return HTML to be injected between the password field and the remember me/submit field
  3. login_form_bottom – return HTML to be injected right before the closing </form>

Related Posts:

  1. Custom form, shortcode, and submit handler
  2. Using action hooks inside of a shortcode
  3. manipulate a plugins shortcode
  4. Simple contact form with field validation
  5. Remove and restore one shortcode
  6. Raw output (preventing wpautop)
  7. other shortcodes in Contact form 7 MAILS [closed]
  8. Enclosing Shortcode Within Another Enclosing Shortcode Breaks Output Functionality
  9. How to add and submit input fields using a shortcode?
  10. Convert HTML Script to Shortcode [closed]
  11. Login form from shortcode doesn’t redirect after successful login
  12. Form Shortcode not saving data to WP database
  13. Getting error on submitting form using Ajax with shortcode
  14. Adding custom form within add_shortcode
  15. How can I collect and output all attributes of all executed ShortCodes?
  16. Use another action instead of the shortcode API to display the last time a user logged in
  17. Form processing: How to process form before output and access data from shortcode
  18. Processing a login/register form before shortcodes are rendered?
  19. How to create a custom shortcode for custom login form?
  20. contact form 7 :create shortcode usable in email message [closed]
  21. Create shortcode for each form field in contact form 7
  22. Set redirect for need login
  23. How can I use a plugin shortcode inside of a html form?
  24. i want to show a modal when user lands on home page very first time
  25. Redirect per shortcode if user is logged in
  26. Send Mail with link to current_user
  27. Contact form code not working. Need help!
  28. How to display a page dependent on a url parameter supplied by a form/button page?
  29. Custom Login in Shortcode got error
  30. Which method to use when deleting posts from the front-end
  31. WordPress shortcode select option not working [closed]
  32. Hook into existing shortcodes to manipulate the attributes?
  33. What hook runs wpautop on template content?
  34. convert it into short code & explan how? [closed]
  35. Enqueue Scripts / Styles when shortcode is present
  36. Conditionally Loading JavaScript/CSS for Shortcodes
  37. What does extract( shortcode_atts( array( do?
  38. Is there a hook that runs after a user logs in?
  39. How do I escape a ‘]’ in a short code?
  40. Pass boolean value in shortcode
  41. Show shortcode without executing it
  42. Shortcode always displaying at the top of the page
  43. Redirect function inside a Shortcode
  44. How to create a shortcode with 1 parameter (atts)
  45. How to include code only on specific pages?
  46. how to show the syntax of a shortcode
  47. Check for correct username on custom login form
  48. Custom shortcode being executed when saving page in wp-admin
  49. Change appearance of shortcode text inside editor
  50. current_shortcode() – detect currently used shortcode
  51. shortcodes output before content [duplicate]
  52. WordPress plugin shortcode not working
  53. How to add stylesheets only to pages with specific shortcode?
  54. Filter specific shortcode output?
  55. Using get_option() in JavaScript
  56. Shortcode empty attribute
  57. How does a shortcode work?
  58. Shortcode outputs at the top of the_content
  59. the_excerpt and shortcodes
  60. Using wp_editor in shortcode
  61. Remove wpautop from shortcode content / remove whitespace in buffering
  62. Get current post id witout passing in shortcode
  63. Is there a hook before the user is authenticated?
  64. Why are you using add_action for shortcode?
  65. How to get URL param to shortcode?
  66. WordPress auto login after registration not working
  67. How to add multiple buttons to TinyMCE?
  68. Check if post/page has gallery?
  69. Get first video from the post (both embed and video shortcodes)
  70. Get shortcode name from within it’s callback function? [duplicate]
  71. Wordspress add into my javascripts
  72. Making a Shortcode [NEXT] and [PREVIOUS] to place into specific posts for post navigation
  73. How do I create a Shortcode that returns text if domain is .com, not .co.uk
  74. Using preg_replace to separate gallery from the_content?
  75. Remove specific shortcode from get_the_content()
  76. How to display the site name in a WordPress page, or post
  77. Hide/show content starting in the middle of a paragraph
  78. Combining shortcode and get_template_part
  79. How can I put a wp_redirect into a shortcode?
  80. Escaping quotes from shortcode attributes
  81. Run visual composer code in php page
  82. short code output too early
  83. Is it possible to sign in with user_email in WordPress?
  84. Shortcode in shortcode: How to append variable?
  85. Remove wptexturize from a shortcode?
  86. How can i put an array as variable in shortcode_atts?
  87. Autoembeds don’t work with paragraphs
  88. Table of Contents with a shortcode
  89. Create custom [sourcecode] shortcode, the right way?
  90. TED talks shortcode not working
  91. Allowing shortcodes inside attributes
  92. What is the best way to enable nested shortcodes?
  93. Init action hook running late after PayPal’s return url?
  94. Tinymce – How to hook before or after live shortcodes rendering?
  95. How to customize a shortcode using the customizer
  96. Native “playlist” shortcode random playing… How?
  97. How to Output HTML tags in do_shortcode?
  98. List of all inbuilt WordPress shortcodes
  99. Nested Shortcode Detection
  100. Shortcode output always showing at top of page
Categories shortcode Tags forms, hooks, login, shortcode
How I can made a custom post type to page templates?
Custom post types sorting admin columns nothing found

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
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 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