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 validate password length in wordpress

if ( strlen( $_POST['pass1'] ) < 3 )
{
   //passwords so small
   $redirect_url = home_url( 'member-password-reset' );
   $redirect_url = add_query_arg( 'error', 'password_reset_mismatch1', $redirect_url );
}

I see here that you’re checking if password length is less than 3. I guess you have to change 3 to 8:

if ( strlen( $_POST['pass1'] ) <= 8 )
{
   //passwords so small
   $redirect_url = home_url( 'member-password-reset' );
   $redirect_url = add_query_arg( 'error', 'password_reset_mismatch1', $redirect_url );
}

Is that what you want to achieve?

Related Posts:

  1. Check if add_menu_page exists or not
  2. Add custom menu item type
  3. Add section (add_settings_section) to a custom page (add_submenu_page)
  4. What’s the easiest way to duplicate an entire navigation menu?
  5. How to call “page specific menu items” in template [closed]
  6. Custom wp_nav_menu output (displaying all child elements of top menu element in current branch)
  7. wp_nav_menu(); Outside WordPress installation
  8. How to make a plugin auto-add item to nav menu
  9. Does the ‘nav_menu_css_class’ filter accept 2 or 3 arguments?
  10. Login with email (WP Modal Login)
  11. How do I make a wordpress plugin with menu item etc
  12. Creating WordPress Plugin solely for Admin panel with dash menu and submenus
  13. Popup Maker nav menu item not working
  14. Creating a menu page in a Object Oriented developed plugin
  15. Multiple navigation menus to a location?
  16. WordPress login with Phone Number [closed]
  17. Making menu link open in new tab?
  18. Include Max mega menu Plugin into theme
  19. How use %like% in sql statement wordpress
  20. Wondering what these multi-colored extra pages are?
  21. Set the active Navigation Menu from a plugin
  22. Menus, but not by theme location
  23. How to make a customize role and view a specific plugins base on that role?
  24. Is there an earlier hook than login_head or login_enqueue_scripts?
  25. Creating a nav menu
  26. Easiest way to add dropdown to a page
  27. How to get the element ID from new menu list that added with add_filter()?
  28. Redirect already logged in users away from a page to a specific page base on user role
  29. Merging Two menus in the backend into one menu
  30. Delete mobile menu button [closed]
  31. html generated by theme exist but doesnt appear in browser
  32. Changing page URL and connect newsletter to MailChip
  33. Dynamic admin submenu
  34. Center and hide overflow of WP toolbar custom links
  35. How to remove admin main menu name repetition
  36. Custom Permalink Plugin and Current Page/Ancestor in Menus
  37. wp-custom-menu filter removes the current_page_item class
  38. add_action does not call the function
  39. How to use my menu PHP code as sidebar?
  40. Redirect to another page using contact form 7? [closed]
  41. Enqueue stylesheet in plugin for wp-login.php
  42. Hide a Menu Item on Login
  43. How to get menu location in wp_update_nav_menu hook
  44. PHP script from functions php is loaded via admin-ajax to div…and the result is 0, not the desired content
  45. Progmatically adding menu links to the default (Top) or Footer menu
  46. $pages = get_pages(‘child_of=’.$post->ID); Why arguments are concatenated?
  47. Possibility to login without password
  48. Changing location of “About me” section
  49. Need to revert to an older version of wordpress
  50. WordPress Custom Menu Admin helper plugin
  51. How can I add a fixed vertical menu to my site? [closed]
  52. 2 wordpress site same database
  53. Hook on creating a menu entry?
  54. Dropdown menu on click change
  55. navigation among single posts
  56. How do i specify a url to which to redirect the user after he logs out from facebook?
  57. I cannot include a file in my plugin settings page
  58. Button and Countdown overlapping mobile menu
  59. Slideout submenu in mobile
  60. Display posts by alphabetical order
  61. Sub Categories in drop down menu
  62. Admin page and admin menu. Permissions plugin
  63. WordPress menu and plugin installation problem
  64. Power Menus plugin destroys menu after adding new item
  65. How to assign plugin to top level menu?
  66. Adding icons next to categories in wp_nav_menu
  67. WP Super Large Menu Problem
  68. Redirect default login page to a custom page [duplicate]
  69. How to build a navigation menu for long-form texts like this one
  70. add_media_page function not creating submenu
  71. How can I pass value to function in add_menu_page?
  72. Automatically add child pages to menu
  73. Multiple Plugins Interacting with Menu
  74. Drop down menu location select widget
  75. How to add plugin activity in the menus?
  76. How change menu for each user in plugin?
  77. Menu items’ links are not working properly and added images
  78. how to change/remove/hide menu under installed plugins
  79. Category archive in menu
  80. Redirect url in plugin to somewhere else?
  81. How to activate/deactivate menu tab and keep the same id?
  82. How can I add different menus (different style menu) on each page?
  83. How to link that “logged in” in “you must be logged in to post a comment” with custom login page on WordPress?
  84. Make a Custom template for a specific category in wordpress
  85. How can I create a navigation menu in the sidebar that can also act like a slider?
  86. Call to a member function get_page_permastruct() on null
  87. Automatically put a menu on every post
  88. Why plugin’s icon for the menu not found?
  89. Plugin: Custom menu item problem
  90. Is it possible to know which menus are owned by a plugin?
  91. How to make horizontal scrolling menu [closed]
  92. My wp_update_nav_menu action is firing twice
  93. How to check if the Menubar contains no items?
  94. How does one add numbers to an admin menu?
  95. Adding fontAwesome to Primary Menu returns after saving the menu
  96. Prevent primary navigational menu from expanding during page load (WordPress / Astra Theme)
  97. Can’t change login logo & css – older plugin data blocking?
  98. Gravityforms login form custom redirect if form not submitted
  99. How can I keep a WordPress dropdown menu open when navigating to a child page?
  100. How to force login on wordpress error
Categories plugins Tags menus, plugins, wp-login-form
check wp_login into a plugin
s2member captcha how to make responsive – css or javascript

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