name = 'message'; $this->label = __("Message",'acf'); $this->category = __("Layout",'acf'); $this->defaults = array( 'message' => '', ); // do not delete! parent::__construct(); } /* * create_field() * * Create the HTML interface for your field * * @param $field - an array holding all the field's data * * @type action * @since 3.6 * @date 23/01/13 */ function create_field( $field ) { echo wpautop( $field['message'] ); } /* * create_options() * * Create extra options for your field. This is rendered when editing a field. * The value of $field['name'] can be used (like bellow) to save extra data to the $field * * @param $field - an array holding all the field's data * * @type action * @since 3.6 * @date 23/01/13 */ function create_options( $field ) { // vars $key = $field['name']; ?>



wpautop

'textarea', 'class' => 'textarea', 'name' => 'fields['.$key.'][message]', 'value' => $field['message'], )); ?>