• wpseo-new-title should be textarea
    Also prefill!

    return sprintf( '<textarea id="%1$s" name="%1$s" class="wpseo-new-title" data-id="%2$s">%3$s</textarea>', 'wpseo-new-title-' . $record->ID, $record->ID,$this->parse_meta_data_field2( $record->ID, $attributes ) );
    
    	protected function parse_meta_data_field2( $record_id, $attributes, $values = false ) {
    
    		// Fill meta data if exists in $this->meta_data
    		$meta_data  = ( ! empty( $this->meta_data[ $record_id ] ) ) ? $this->meta_data[ $record_id ] : array();
    		$meta_key   = WPSEO_Meta::$meta_prefix . $this->target_db_field;
    		$meta_value = ( ! empty( $meta_data[ $meta_key ] ) ) ? $meta_data[ $meta_key ] : '';
    
    		if ( ! empty( $values ) ) {
    			$meta_value = $values[ $meta_value ];
    		}
    
    		return $meta_value;
    	}

    https://wordpress.org/plugins/wordpress-seo/

The topic ‘Bulk enhancements’ is closed to new replies.