Title: filter for adding predefined variables
Last modified: August 22, 2016

---

# filter for adding predefined variables

 *  Resolved [aureleduda](https://wordpress.org/support/users/aureleduda/)
 * (@aureleduda)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/filter-for-adding-predefined-variables/)
 * Hi, I search a way for adding some other predefined variables to forms, for instance
   replace {s2m_a custom_field} by get_user_field (‘a custom_field’, $user->ID).
   
   I see all the predefined variables are filtered by cforms2_check_default_vars,
   but I didn’t see a way to append something, nor to filter the data just after
   cforms2_check_default_vars.
 * Is there somthing I didn’t see ?
    Thanks, Aurèle
 * [https://wordpress.org/plugins/cforms2/](https://wordpress.org/plugins/cforms2/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [bgermann](https://wordpress.org/support/users/bgermann/)
 * (@bgermann)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/filter-for-adding-predefined-variables/#post-5478722)
 * No, there is no support for inserting custom information from PHP. You could 
   implement such a feature (most likely as a WordPress filter) and GitHub pull 
   request.
 *  Thread Starter [aureleduda](https://wordpress.org/support/users/aureleduda/)
 * (@aureleduda)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/filter-for-adding-predefined-variables/#post-5478734)
 * Thanks for the answer, I will have a look on this.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘filter for adding predefined variables’ is closed to new replies.

 * ![](https://ps.w.org/cforms2/assets/icon-128x128.png?rev=1010031)
 * [cformsII](https://wordpress.org/plugins/cforms2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cforms2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cforms2/)
 * [Active Topics](https://wordpress.org/support/plugin/cforms2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cforms2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cforms2/reviews/)

## Tags

 * [cformsii](https://wordpress.org/support/topic-tag/cformsii/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)

 * 2 replies
 * 2 participants
 * Last reply from: [aureleduda](https://wordpress.org/support/users/aureleduda/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/filter-for-adding-predefined-variables/#post-5478734)
 * Status: resolved