array( 'url' ), ); } /** * Method for setting the title for each translatable field. * * @since 1.23.0 * * @param string $field The name of the field. * @return string */ protected function get_title( $field ) { if ( 'steps_item_title' === $field ) { return __( 'How-to Schema: Title', 'uael' ); } if ( 'steps_item_desc' === $field ) { return __( 'How-to Schema: Description', 'uael' ); } if ( 'steps_item_url' === $field ) { return __( 'How-to Schema: Link', 'uael' ); } return ''; } /** * Method for determining the editor type for each field. * * @since 1.23.0 * * @param string $field Name of the field. * @return string */ protected function get_editor_type( $field ) { switch ( $field ) { case 'steps_item_title': case 'steps_item_desc': case 'steps_item_url': return 'LINE'; default: return ''; } } }