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