Title: Custom fields
Last modified: July 29, 2020

---

# Custom fields

 *  Resolved [surion](https://wordpress.org/support/users/surion/)
 * (@surion)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/custom-fields-360/)
 * I’m trying to add the code bellow on my theme functions.php,
    but it wont work
 * Could you help please?
 * add_filter(‘sln.checkout.additional_fields’,function(){
    return array( ‘custom_field_c’
   => array( “label” => ‘Kids’, “type” => ‘select’, “options” => array(‘0′,’1’, ‘
   2’, ‘3’, ‘4’, ‘5’), “width” => ‘half’, “default” => ‘0’
 * ),
    ); });
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-fields-360%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Dimitri Grassi](https://wordpress.org/support/users/wordpresschef/)
 * (@wordpresschef)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/custom-fields-360/#post-13195924)
 * Pay attention to the apex
 * `'`

Viewing 1 replies (of 1 total)

The topic ‘Custom fields’ is closed to new replies.

 * ![](https://ps.w.org/salon-booking-system/assets/icon-256x256.gif?rev=3214950)
 * [Salon Booking System - Free Version](https://wordpress.org/plugins/salon-booking-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/salon-booking-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/salon-booking-system/)
 * [Active Topics](https://wordpress.org/support/plugin/salon-booking-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/salon-booking-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/salon-booking-system/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Dimitri Grassi](https://wordpress.org/support/users/wordpresschef/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/custom-fields-360/#post-13195924)
 * Status: resolved