array( 'url' ), ); } /** * Method for setting the title for each translatable field. * * @since 1.2.2 * * @param string $field The name of the field. * @return string */ protected function get_title( $field ) { if ( 'title' === $field ) { return __( 'Price List: Title', 'uael' ); } if ( 'item_description' === $field ) { return __( 'Price List: Description', 'uael' ); } if ( 'price' === $field ) { return __( 'Price List: Price', 'uael' ); } if ( 'original_price' === $field ) { return __( 'Price List: Original Price', 'uael' ); } if ( 'url' === $field ) { return __( 'Price List: Item Link', 'uael' ); } return ''; } /** * Method for determining the editor type for each field. * * @since 1.2.2 * * @param string $field Name of the field. * @return string */ protected function get_editor_type( $field ) { switch ( $field ) { case 'map_title': case 'title': case 'price': case 'original_price': case 'url': return 'LINE'; case 'item_description': return 'AREA'; default: return ''; } } }