Problem:
The issue here is that the user had created some custom placeholders for their CRED notifications.
add_filter('cred_subject_notification_codes', 'custom_generic_field_notification', 10, 1); add_filter('cred_body_notification_codes', 'custom_generic_field_notification', 10, 1); function custom_generic_field_notification( $defaultPlaceHolders ) { $newPlaceHolders = array( '%%FICHE_TECHNIQUE%%' => $_REQUEST['produit-concerne'] '%%TITLE%%' => $_REQUEST['producttitle'] ); return array_merge($defaultPlaceHolders, $newPlaceHolders ); }
With the generic field
[cred_generic_field type='textfield' field='produit-concerne'] { "default":"[types field='fiche-technique-produit'][/types]" } [/cred_generic_field] [cred_generic_field field='producttitle' type='hidden' class='' urlparam=''] { "required":0, "validate_format":0, "default":"[wpv-post-title]" } [/cred_generic_field]
However the placeholders weren't working.
Solution:
For this user they just needed to ensure that the field is being stored to the database by using the "persist":1 attribute.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 14:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Jamaica (GMT-05:00)
Ce sujet contient 3 réponses, a 2 voix.
Dernière mise à jour par Il y a 5 années et 8 mois.
Assisté par: Shane.