Title.php
889 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
<?php
namespace ACA\YoastSeo\Column\Post;
use AC;
use ACA\YoastSeo\Editing;
use ACA\YoastSeo\Export;
use ACA\YoastSeo\Filtering;
use ACP;
class Title extends AC\Column
implements ACP\Editing\Editable, ACP\Export\Exportable, ACP\Search\Searchable {
public function __construct() {
$this->set_type( 'wpseo-title' )
->set_group( 'yoast-seo' )
->set_original( true );
}
public function get_meta_key() {
return '_yoast_wpseo_title';
}
public function editing() {
return new ACP\Editing\Service\Basic(
( new ACP\Editing\View\Text() )->set_placeholder( __( 'Enter your SEO Title', 'codepress-admin-columns' ) ),
new ACP\Editing\Storage\Post\Meta( $this->get_meta_key() )
);
}
public function export() {
return new Export\Post\Title();
}
public function search() {
return new ACP\Search\Comparison\Meta\Text( $this->get_meta_key(), 'post' );
}
}