I know this question has been asked a while ago but I’d drop my answer which might help someone out there who is having same issue.
The reason why you got the ERROR: The password field is empty. is because the crediential array key for the password is incorrect. In your code you have the key as user_pass
but it needs to be user_password
as stated here.
This portion of your code
$creds = array(
'user_login' => $user->user_login,
'user_pass' => $user_pass_login
);
needs to be:
$creds = array(
'user_login' => $user->user_login,
'user_password' => $user_pass_login
);
Related Posts:
- Can I individually style items in the backend widget list?
- Enqueue script globally
- 400 Bad Request, in wordpress theme development, wp_ajax
- 400 Bad Request and illegal invocation in wp_ajax based on processData set to false or true
- redirect_to how to make it simply work with get parameter or similar?
- Loading jQuery library from WordPress admin
- How developed with version control word press site on shared host? [closed]
- Admin – Handle data before creating or updating a post, page or custom post
- wp_filesystem put_contents issue with owner/group
- How to export post meta with images in wordpress
- Is it possible to make sure that only my plugins output is shown to the enduser?
- How can I replace content in the WP Admin area before an admin page is rendered?
- How to change title tag at page after loaded post?
- Following WordPress Markup Is mandatory, got awkward resultyby wordpress standard markup?
- How do I create plugin or theme using MVC pattern?
- Plugin Development for registered users
- How to limit number of number of categories displayed by categories widget
- Using ReactJS in the WordPress admin for plugin development
- PowerPress mobile media player
- When is the proper time to minify css and js with git workflow?
- Strange Situation When Try To Retrieve Github Gist Using wp_remote_get
- How to hide or rename “X” and “x-child” references in website source?
- template_redirect or admin-ajax.php?
- WordPress custom taxonomy check box to dropdown
- Creating Admin Plugin – Content of a page is displayed at global scope as well
- How to Get Current Custom Post Type Associated Taxonomy Term
- How to load library scripts in admin from plugins in noConflict wrapper?
- Show error message after exception handled
- Plugin templates vs Parent Theme
- Selectively update themes in WordPress multisite
- Widget HTML Display Problem
- Issue with contextual help overwriting existing content
- How to create a backend for a custom theme?
- wp_nonce_field displaying twice
- Alternatives to DISALLOW_FILE_EDIT wp-config Constant? It Breaks Some Plugins
- Warning: include(): https:// wrapper is disabled in the server configuration by allow_url_include=0
- WP Multisite login not working on one subsite. Possibly cookies/ history issue?
- How do I add a favicon that only shows during viewing of my plugin’s admin panel?
- Plugin is not generating title tags on any pages or posts
- Is it necessary to do validation again when retrieving data from database?
- How to Control CSS of Admin On Creating only a Specific Custom Post Type
- Can’t change the style of a submit input type? [closed]
- Make a plugin page out of influence of the theme’s style
- How do I link to a php file in my plugin directory?
- Update Data parameter of a wp_localize_script() call
- Custom entity search and display
- WP Plugin Running before jQuery
- Template directory in plugin
- WordPress Admin Login Custom Logo
- get_the_tags with separator control?
- How to only load css for used blocks on frontend
- How to create custom settings page for custom plugin
- How to import the css in the plugin admin area?
- Add child pages to submenu automatically
- Creating multiple wp_editer() text fields in for loop — the text/visual switch only works for first editor
- Displaying “One Time” Notification in Plugins
- Why in this archive page that call query_posts() function show only the last 10 posts?
- my own SVN for a plugin/theme
- Issue on Setting $icon_url Parameter on WP add_menu_page()
- Why enqueue styles on hook?
- Wp-admin Custom User Management
- Admin Subpages without Menu entry
- Getting a WordPress Debug Strategy
- unable to wp_enqueue_script(‘suggest’);
- Drawing the line between theme & plugin on large scale bespoke projects
- Apply styles to blockquote element with the WYSIWYG editor
- PHP File_exist() not working – Checking if File Exist in WordPress Theme Directory
- Filter for admin (back end) ‘reply to’ comment
- Why would you use esc_attr() on internal functions?
- Invalid hook call on save, not edit when using swiper slider
- Proper way to use useSelect
- Conditional Generation of Image Sizes using add_image_size
- How to add plugin options in wp editor page
- Ajax: Populate with content from a post’s ID not working – duplicating current page html instead
- Data not insert and update through ajax and jQuery in admin page?
- How to find where an object first instantiatiation
- Gutenberg blocks error: Each child in a list should have a unique “key” prop
- Catching Form Submission in WordPress Admin Panel
- Redirect in WordPress plugin
- How to add custom view links to wp-admin/post.php?
- Full documentation about $args for register_rest_route?
- WP Still Generating 150×150 Thumbnail Size Even After Un-Setting Small Size in Functions.php
- Is it possible to load the css just on my plugin admin page?
- How do I validate extra pin field on my WordPress login form page?
- AJAX button with success callback. (Titan Framework)
- modify show UI of a registered taxonomy
- Using function from enqueued .js file in theme in plugin?
- How to redirect home page to another page after login for all user?
- Does WordPress default CSS have Grids?
- jQuery UI tab does not work in the plugin page
- Using HTML links within translatable string
- How to resize WordPress images on upload to specific height and width without cropping it
- Disable Auto-Expanding Menu in WordPress Admin Menus
- Best practice for plugin: always detect admin-ajax call?
- How do I force a download in the admin area?
- Submit form to a different PHP file in the same plugin folder
- Create fixed static pages
- How to get terms for taxonomy
- Plugin Development – Get Admin Url (Including cases where wp-admin is not used)
- How to replace settings in WordPress plugin from a theme