本文整理汇总了PHP中CPAC_Column类的典型用法代码示例。如果您正苦于以下问题:PHP CPAC_Column类的具体用法?PHP CPAC_Column怎么用?PHP CPAC_Column使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CPAC_Column类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
/**
* @see CPAC_Column::init()
* @since 2.2.1
*/
public function init()
{
parent::init();
// Properties
$this->properties['type'] = 'column-file_size';
$this->properties['label'] = __('File size', 'codepress-admin-columns');
}
示例2: init
/**
* @see CPAC_Column::init()
* @since 2.2.1
*/
public function init()
{
parent::init();
// Properties
$this->properties['type'] = 'column-user_commentcount';
$this->properties['label'] = __('Comment Count');
}
示例3: init
/**
* @see CPAC_Column::init()
* @since 2.3.3
*/
public function init()
{
parent::init();
$this->properties['type'] = 'column-estimated_reading_time';
$this->properties['label'] = __('Estimated Reading Time', 'codepress-admin-columns');
$this->options['words_per_minute'] = 200;
}
示例4: init
/**
* @see CPAC_Column::init()
* @since 2.2.1
*/
public function init()
{
parent::init();
$this->properties['type'] = 'column-parent';
$this->properties['label'] = __('Parent', 'codepress-admin-columns');
$this->properties['object_property'] = 'post_parent';
}
示例5: init
/**
* @see CPAC_Column::init()
* @since 2.3.4
*/
public function init()
{
parent::init();
// Properties
$this->properties['type'] = 'column-shortcode';
$this->properties['label'] = __('Shortcodes', 'codepress-admin-columns');
}
示例6: init
/**
* @see CPAC_Column::init()
* @since 2.2.4
*/
public function init()
{
parent::init();
// Properties
$this->properties['type'] = 'column-title_raw';
$this->properties['label'] = __('Title without actions', 'codepress-admin-columns');
}
示例7: init
/**
* @see CPAC_Column::init()
* @since 2.2.1
*/
public function init()
{
parent::init();
$this->properties['type'] = 'column-user_description';
$this->properties['label'] = __('Description', 'codepress-admin-columns');
$this->options['excerpt_length'] = 30;
}
示例8: init
public function init()
{
parent::init();
$this->properties['type'] = 'column-modified';
$this->properties['label'] = __('Last modified', 'codepress-admin-columns');
$this->options['date_format'] = '';
}