Meg
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
| Status | Debate | Supporter | Voces | Mensajes | Caducidad |
|---|---|---|---|---|---|
|
AJAX pagination does not work with custom role
Iniciado por: Meg en: Toolset Professional Support |
|
2 | 8 | 3 years, 8 months ago | |
|
AJAX pagination does not work with nested view
Iniciado por: Meg en: Toolset Professional Support |
|
2 | 12 | 3 years, 10 months ago | |
|
AJAX pagination does not work with nested view
Iniciado por: Meg en: Toolset Professional Support |
2 | 2 | 3 years, 10 months ago | ||
|
View slider pagination
Iniciado por: Meg en: Toolset Professional Support |
|
2 | 4 | 4 years, 5 months ago | |
|
Multilanguage Registration Form
Iniciado por: Meg
en: Toolset Professional Support
Problem: The customer asked how the WordPress user "Language" field can be set through the Toolset's user form. Solution: Informed that there is no built-in method available in the Toolset Forms for this, so it will require some workaround and custom code. WordPress store's the ISO language code for the user's selected WordPress admin language as a value, in the user meta field with key 'locale'. In a user registration form, one can include a hidden generic field and fill its value with the language code of the current page's language. After that, the 'cred_save_data' hook can be used to programmatically set that selected language value into the user's 'locale' meta field:
add_action('cred_save_data', 'my_save_data_action',10,2);
function my_save_data_action($user_id, $form_data)
{
// if a specific form
if ($form_data['id']==1234)
{
update_user_meta( $user_id, 'locale', $_POST['locale'] );
}
}
Relevant Documentation: https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data https://developer.wordpress.org/reference/functions/update_user_meta/ |
|
2 | 5 | 4 years, 6 months ago | |
|
Conditional and Reusable blocks
Iniciado por: Meg
en: Toolset Professional Support
Problem: Solution: In the other hand, you can reuse a content template in the "same" way as a reusable block. Create a content template and use the conditional block inside of it. Then reuse it, with the "Content Template" block, everywhere you want. |
|
3 | 4 | 4 years, 6 months ago | |
|
Template Archive
Iniciado por: Meg en: Toolset Professional Support |
|
2 | 6 | 4 years, 6 months ago |