Welcome to Help center

We are here to help

How to add custom fields

Follow

There is possibility customize Zoner using custom fields.

Via child Zoner theme > Add lines form attached file to file functions.php for adding one custom field.

Please, find below example, how to add several custom fields.

 

if ( ! function_exists( 'zoner_add_to_admin_custom_property_fields' ) ) {

       function zoner_add_to_admin_custom_property_fields($fields) {    

           global $prefix;

       

           $fields[] = array(

               'name'        => esc_html__( 'Example Field 1', 'zoner' ),

               'subname'   => esc_html__( 'Edit example field 1.', 'zoner' ),

               'id'         => $prefix . 'example_field_1',

               'type'         => 'text_medium'

           );

           

           $fields[] = array(

               'name'        => esc_html__( 'Example Field 2', 'zoner' ),

               'subname'   => esc_html__( 'Edit example field 2.', 'zoner' ),

               'id'         => $prefix . 'example_field_2',

               'type'         => 'text_medium'

           );

           

           return $fields;

       }

   }

   add_filter('zoner_admin_property_fields', 'zoner_add_to_admin_custom_property_fields');

Comments

Top
Powered by Zendesk