# wpdatatables/6.5.1.7/source/class.string.wpdatacolumn.php

wpDataTables – WordPress Data Table, Dynamic Tables &amp; Table Charts Plugin, version 6.5.1.7. 29 lines.

- Page: https://pluginprobe.com/plugins/wpdatatables/6.5.1.7/code/source/class.string.wpdatacolumn.php
- Raw: https://pluginprobe.com/plugins/wpdatatables/6.5.1.7/raw/source/class.string.wpdatacolumn.php
- Modified: 2023-12-15T08:56:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpdatatables/6.5.1.7/code/source/class.string.wpdatacolumn.php#L10-L20`.

```php
<?php

defined('ABSPATH') or die("Cannot access pages directly.");

class StringWDTColumn extends WDTColumn
{

    protected $_dataType = 'string';
    protected $_jsDataType = 'string';

    public function __construct($properties = array())
    {
        parent::__construct($properties);
        $this->_dataType = 'string';
        $this->_foreignKeyRule = WDTTools::defineDefaultValue($properties, 'foreignKeyRule', null);
    }

    public function prepareCellOutput($content)
    {
        $content = apply_filters('wpdatatables_filter_string_cell_before_formatting', $content, $this->getParentTable()->getWpId());

        if (get_option('wdtParseShortcodes')) {
            if(!is_null($content))
                $content = do_shortcode($content);
        }
        return apply_filters('wpdatatables_filter_string_cell', $content, $this->getParentTable()->getWpId());
    }

}
```
