Hello,
You need to first create your “Editor” account from WP-Admin > Users. There is nothing special to do. Just create an user account like you would normally do and select the appropriate role.
Once done, check the user details page for this user from WP-Admin > Users. You should be able to find the ID for this user in the address bar of your browser.
You’ll then be able to enter his ID into the Code Snippet you previously mentionned (warning: I noticed the code snippet was incomplete and I’ve updated it. Please take a look at the doc again since the code changed).
You’ll then need to add this Code snippet into a custom plugin.
Best regards.
Want to help WP Customer Area? It only takes few seconds!
Rate & review the plugin on WordPress.org 🙂