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

how to error_log(wp_login_url())

I think, while saving the post, you won’t be able to display this result.

You can try below instead –

Log the output in the database.
e.g. update_option('some_option', wp_login_url($redirect));

And then print get_option('some_option') directly somewhere outside this save_post hook callback (e.g. on wp_footer hook). You may need to refresh the page after save post to see the result.

or rather just check directly in the options table of WordPress database to see the result.

Related Posts:

  1. Is it possible to change the log file location for WP_DEBUG_LOG?
  2. Define WP_DEBUG conditionally / for admins only / log errors (append query arg for all links?)
  3. Unable to login and wp-login.php redirects to wp-admin%2F&reauth=1?
  4. How do I find the version of WordPress I have from the source code?
  5. Control verbosity level of WP DEBUG?
  6. How to check if debug is true and can I use it for my own code? [duplicate]
  7. Suppress deprecated notices
  8. Debugging in WordPress
  9. Debug.log file is never created?
  10. Debugging WordPress themes with Xdebug, real time html output
  11. Easy code troubleshooting in wordpress
  12. Tutorials for Unit-Testing in WordPress and for unit-test.svn.wordpress.org?
  13. Nginx – Prevent Access to Debug file [closed]
  14. How to make debug.log timestamps local time?
  15. How to debug when error_log not working as expected
  16. How can I determine what php files are being called by a given WP page?
  17. Where should I tell WordPress where error_log messages should be written?
  18. How to set up plugin project with XDebug remote debugging in PhpStorm
  19. Disable Debug Log Programmatically
  20. How to empty debug.log when file size is above xyMB?
  21. Intercepting wp_mail() to view contents
  22. Where’s The Best Place to use Register_Shutdown_Function()?
  23. Is it possible to set another language for debugging messages?
  24. Send specific users an email when posts are published
  25. Super WordPress debugging toolkit and triage procedures? [duplicate]
  26. if(!is_user_logged_in()) returns true when 404
  27. How to dump/log default values that are passed to hooks/filter functions?
  28. xdebug connects but won’t break in WordPress with vvv
  29. Using debug log in production, is that a security concern?
  30. The plugin generated xx characters of unexpected output. How to solve?
  31. debugging wordpress
  32. Enable WordPress Debug only for Admin
  33. wp-includes/comment-template.php:26 – Trying to get property of non-object
  34. PHP-FPM WordPress Debug
  35. Debugging preview not working problem
  36. Wordress debug log is not working
  37. Always keep a parameter in URL?
  38. How can I understand what is the cause of WP death (white screen)?
  39. Why does WordPress keep showing me error messages?
  40. Debug Notice: X is deprecated since version 4.5! Use Y instead
  41. Debug 500 Internal Server Error on WordPress blog
  42. “… logged-in …” seems top of my website
  43. PHP Notice – Custom Function
  44. Suddenly lots of bugs in my WP installation? [closed]
  45. Why does WP_DEBUG only work after wp_debug_mode() is called? [closed]
  46. Notice: Undefined index [closed]
  47. Notice: attribute_escape is deprecated
  48. How to disable JS? info windows from WP-FirePHP
  49. How do I acquire all the meta-information for a particular page I am on?
  50. How to find line of code causing wordpress deprecation notices
  51. Best location for a debugging script
  52. Debug Errors, site health
  53. problem with size of debug.log file
  54. What is debug.log.old? It seems to take up a lot of space
  55. Comment WP_DEBUG in wp-config file
  56. How can I remove text above the header? [closed]
  57. what are WP_DEBUG conditions?
  58. Best place to call xdebug helper functions?
  59. Cannot Modify Header Information – While trying logging in
  60. Running xDebug and NPM at the same time?
  61. 3,840 cronjobs with no action!
  62. Solution to White Screen of Death that does not require Web Server access?
  63. strange characters in debug file
  64. Notice on core function
  65. Step debug wp cron run – ideas how to get this working in PHPStorm with Xdebug?
  66. There is no any line related the error but it says critical error
  67. Display Custom Taxonomy Dropdown posts
  68. Correct my shortcode for displaying a category?
  69. error log is going to the wrong location, WP_DEBUG_LOG is ignored
  70. A bug happens in the Footer and the code keeps appearing
  71. debug.log is not created
  72. Error on add_submenu_page() declaration
  73. Debug info from request handler
  74. Debugging Mysterious PHP Addition
  75. WordPress seems broken when logged of
  76. Finding which functions were called
  77. Error on debug.log PHP Stric Standards and PHP notice
  78. Unable to load Posts list & Getting error 500 error
  79. Weird bug regarding the_excerpt()
  80. Debugging conundrum with a problem fixed by enabling WP_DEBUG
  81. Can’t show debug even after modifying wp-config
  82. How do I issue a warning in a wordpress plugin?
  83. Method ‘post_title’ not found in class.
  84. How can I turn off WP_DEBUG_LOG messages coming from a specific plugin or theme?
  85. Theme parts path location dump
  86. Changes to WordPress database using phpMyAdmin not reflected on blog
  87. WP Debug set to true but still wsod
  88. How do you get the docroot directory?
  89. How to solve the fopen error?
  90. Why debug.log doesn’t work?
  91. debug notice on my WordPress site [closed]
  92. TGM plugin error in Theme Check Plugin
  93. How to check whether functions is deprecated or not?
  94. Why does my site generate .bt files?
  95. Any wordpress development tool to query its functions?
  96. WordPress not available to file using wp-env for xdebug requests
  97. when I Try to Create new Post or Page it goes Draft(I can’t post Anything)
  98. Error Function is_tax was called incorrectly
  99. Getting a stack trace when an error occurs?
  100. Modify wp-login.php labels: Username to Email
Categories debug Tags debug, wp-login-form
Categories with post from child categories on front page
How to display most popular post by views count in WordPress?

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