array( 'url' ), ); } /** * Method for setting the title for each translatable field. * * @since 1.21.0 * * @param string $field The name of the field. * @return string */ protected function get_title( $field ) { if ( 'text' === $field ) { return __( 'Navigation Menu: Text', 'uael' ); } if ( 'link' === $field ) { return __( 'Navigation Menu: Link', 'uael' ); } return ''; } /** * Method for determining the editor type for each field. * * @since 1.21.0 * * @param string $field Name of the field. * @return string */ protected function get_editor_type( $field ) { switch ( $field ) { case 'text': case 'link': return 'LINE'; default: return ''; } } }