PluginProbe
wpDataTables – WordPress Data Table, Dynamic Tables & Table Charts Plugin / trunk
wpDataTables – WordPress Data Table, Dynamic Tables & Table Charts Plugin vtrunk
6.5.1.6 6.5.1.5 6.5.1.4 6.5.1.3 6.5.1.2 6.5.1.1 6.5.0.9 6.5.0.8 6.5.0.7 6.5.0.6 trunk 3.4.2.40 3.4.2.41 3.4.2.42 3.4.2.43 3.4.2.44 3.4.2.45 3.4.2.46 3.4.2.47 3.4.2.48 3.4.2.49 3.4.2.50 6.3.2 6.3.3.1 6.3.3.10 All 46 releases
wpdatatables / source / class.string.wpdatacolumn.php

class.string.wpdatacolumn.php in wpDataTables – WordPress Data Table, Dynamic Tables & Table Charts Plugin trunk, at source/class.string.wpdatacolumn.php

29 lines 886 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined('ABSPATH') or die("Cannot access pages directly.");
4
5 class StringWDTColumn extends WDTColumn
6 {
7
8 protected $_dataType = 'string';
9 protected $_jsDataType = 'string';
10
11 public function __construct($properties = array())
12 {
13 parent::__construct($properties);
14 $this->_dataType = 'string';
15 $this->_foreignKeyRule = WDTTools::defineDefaultValue($properties, 'foreignKeyRule', null);
16 }
17
18 public function prepareCellOutput($content)
19 {
20 $content = apply_filters('wpdatatables_filter_string_cell_before_formatting', $content, $this->getParentTable()->getWpId());
21
22 if (get_option('wdtParseShortcodes')) {
23 if(!is_null($content))
24 $content = do_shortcode($content);
25 }
26 return apply_filters('wpdatatables_filter_string_cell', $content, $this->getParentTable()->getWpId());
27 }
28
29 }