New to Translating WordPress? Read through our Translator Handbook to get started. Hide
| Prio | Original string | Translation | — |
|---|---|---|---|
| ↑ | External Login allows users to log in to the WordPress site with a different database of users. | You have to log in to add a translation. | Details |
Original untranslated
External Login allows users to log in to the WordPress site with a different database of users.
You have to log in to edit this translation. |
|||
| ↑ | External Login | External Login | Details |
Original current |
|||
| Get in contact on the support forum and we can discuss it :) | You have to log in to add a translation. | Details | |
Original untranslated
Get in contact on the support forum and we can discuss it :)
CommentFound in faq paragraph. You have to log in to edit this translation. |
|||
| The below is a relatively complex example that shows how you could write your own query to fetch data and use that to add WordPress roles. | You have to log in to add a translation. | Details | |
Original untranslated
The below is a relatively complex example that shows how you could write your own query to fetch data and use that to add WordPress roles.
CommentFound in faq paragraph. You have to log in to edit this translation. |
|||
| The below is a very simple example that adds the role 'everyoneRole', to all users who are authenticated with the plugin.↵ The below example assumes that you want to use the roles derived from the built in logic and add to it.↵ For this reason new roles are added onto the passed array and that is returned.↵ If you ONLY want roles from your logic, you could return your own array. | You have to log in to add a translation. | Details | |
Original untranslated
The below is a very simple example that adds the role 'everyoneRole', to all users who are authenticated with the plugin.↵
The below example assumes that you want to use the roles derived from the built in logic and add to it.↵
For this reason new roles are added onto the passed array and that is returned.↵
If you ONLY want roles from your logic, you could return your own array.
CommentFound in faq paragraph. You have to log in to edit this translation. |
|||
| It is expected that you will return an array of roles. | You have to log in to add a translation. | Details | |
Original untranslated
It is expected that you will return an array of roles.
CommentFound in faq paragraph. You have to log in to edit this translation. |
|||
| This hook provides the user with a range of different information:↵ - <code>$roles</code> - the array of roles already mapped using the built in logic based on data set it the admin panel↵ - <code>$username</code> - the username that was typed in the login screen↵ - <code>$userData</code> - the data that was originally queried for the user | You have to log in to add a translation. | Details | |
Original untranslated
This hook provides the user with a range of different information:↵
- <code>$roles</code> - the array of roles already mapped using the built in logic based on data set it the admin panel↵
- <code>$username</code> - the username that was typed in the login screen↵
- <code>$userData</code> - the data that was originally queried for the user
CommentFound in faq paragraph. You have to log in to edit this translation. |
|||
| exlog_hook_filter_assign_roles↵ This hook is used to add additional roles to a user with custom logic and potentially custom queries. | You have to log in to add a translation. | Details | |
Original untranslated
exlog_hook_filter_assign_roles↵
This hook is used to add additional roles to a user with custom logic and potentially custom queries.
CommentFound in faq list item. You have to log in to edit this translation. |
|||
| Alternatively if you provide a string the user will be blocked and the string will be used as the error for the user. | You have to log in to add a translation. | Details | |
Original untranslated
Alternatively if you provide a string the user will be blocked and the string will be used as the error for the user.
CommentFound in faq paragraph. You have to log in to edit this translation. |
|||
| It provides you with all the data for the user that is stored in the external database users table.↵ If you return <code>true</code> (or a string - see below regarding custom error messages) from this function it will prevent the↵ user logging in, and returning <code>false</code> will bypass this exclusion. | You have to log in to add a translation. | Details | |
Original untranslated
It provides you with all the data for the user that is stored in the external database users table.↵
If you return <code>true</code> (or a string - see below regarding custom error messages) from this function it will prevent the↵
user logging in, and returning <code>false</code> will bypass this exclusion.
CommentFound in faq paragraph. You have to log in to edit this translation. |
|||
| You may need to pass the string "mssql" or "postgresql" instead of "mysql" depending on your database. | You have to log in to add a translation. | Details | |
Original untranslated
You may need to pass the string "mssql" or "postgresql" instead of "mysql" depending on your database.
CommentFound in faq paragraph. You have to log in to edit this translation. |
|||
| If you wish to fetch the connection details from the plugin, the below code snippet shows how you can use an External↵ Login function to get the connection details you require and also shows an example query: | You have to log in to add a translation. | Details | |
Original untranslated
If you wish to fetch the connection details from the plugin, the below code snippet shows how you can use an External↵
Login function to get the connection details you require and also shows an example query:
CommentFound in faq paragraph. You have to log in to edit this translation. |
|||
| If the additional data you require is not in the users table of your external database you will have to write your own↵ query to access the data you require. | You have to log in to add a translation. | Details | |
Original untranslated
If the additional data you require is not in the users table of your external database you will have to write your own↵
query to access the data you require.
CommentFound in faq paragraph. You have to log in to edit this translation. |
|||
| If you needed multiple fields you could add multiple calls to <code>update_user_meta</code>. | You have to log in to add a translation. | Details | |
Original untranslated
If you needed multiple fields you could add multiple calls to <code>update_user_meta</code>.
CommentFound in faq paragraph. You have to log in to edit this translation. |
|||
| If the additional data you require is in the users table achiving your goal is slightly easier. Below is an example↵ where by there is a field in the external database called <code>someExternalField</code> and we want to store that as user meta↵ data in WordPress under the name <code>someKeyForUserMetaData</code>. | You have to log in to add a translation. | Details | |
Original untranslated
If the additional data you require is in the users table achiving your goal is slightly easier. Below is an example↵
where by there is a field in the external database called <code>someExternalField</code> and we want to store that as user meta↵
data in WordPress under the name <code>someKeyForUserMetaData</code>.
CommentFound in faq paragraph. You have to log in to edit this translation. |
|||
Export as
Comment
Short description.