本文整理匯總了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'] = '';
}