Website.php
800 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
<?php
namespace ACA\EC\Column\Event;
use AC;
use ACA\EC\Column\Meta;
use ACP;
class Website extends Meta
implements ACP\Search\Searchable, ACP\ConditionalFormat\Formattable {
use ACP\ConditionalFormat\FilteredHtmlFormatTrait;
public function __construct() {
$this->set_type( 'column-ec-event_website' )
->set_label( __( 'Event Website', 'codepress-admin-columns' ) );
parent::__construct();
}
public function get_meta_key() {
return '_EventURL';
}
public function register_settings() {
$this->add_setting( new AC\Settings\Column\LinkLabel( $this ) );
}
public function filtering() {
return new ACP\Filtering\Model\Disabled( $this );
}
public function search() {
return new ACP\Search\Comparison\Meta\Text( $this->get_meta_key(), $this->get_meta_type() );
}
}