Readability.php
806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace ACA\YoastSeo\Column\Post;
use AC;
use ACP;
use ACP\Sorting\Type\DataType;
class Readability extends AC\Column\Meta
implements ACP\Export\Exportable, ACP\Sorting\Sortable {
public function __construct() {
$this->set_original( true )
->set_group( 'yoast-seo' )
->set_type( 'wpseo-score-readability' );
}
// The display value is handled by the native column
public function get_value( $id ) {
return false;
}
/**
* @inheritDoc
*/
public function get_meta_key() {
return '_yoast_wpseo_content_score';
}
public function export() {
return new ACP\Export\Model\StrippedRawValue( $this );
}
/**
* @inheritDoc
*/
public function sorting() {
return new ACP\Sorting\Model\Post\Meta( $this->get_meta_key(), new DataType( DataType::NUMERIC ) );
}
}