%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/cwg/wp-content/plugins/codepress-admin-columns/classes/Column/Post/
Upload File :
Create Path :
Current File : //var/www/cwg/wp-content/plugins/codepress-admin-columns/classes/Column/Post/WordCount.php

<?php

namespace AC\Column\Post;

use AC\Column;

/**
 * @since 2.0
 */
class WordCount extends Column {

	public function __construct() {
		$this->set_type( 'column-word_count' );
		$this->set_label( __( 'Word Count', 'codepress-admin-columns' ) );
	}

	public function get_raw_value( $post_id ) {
		return ac_helper()->string->word_count( get_post_field( 'post_content', $post_id ) );
	}

	function is_valid() {
		return post_type_supports( $this->get_post_type(), 'editor' );
	}

}

Zerion Mini Shell 1.0