FullName.php
819 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
<?php
namespace ACP\Editing\View;
use ACP\Editing\View;
class FullName extends View {
public function __construct() {
parent::__construct( 'fullname' );
$this->set_placeholder_first_name( __( 'First Name', 'codepress-admin-columns' ) );
$this->set_placeholder_last_name( __( 'Last Name', 'codepress-admin-columns' ) );
}
/**
* @param string $placeholder_first_name
*
* @return $this
*/
public function set_placeholder_first_name( $placeholder_first_name ) {
$this->set( 'placeholder_first_name', (string) $placeholder_first_name );
return $this;
}
/**
* @param string $placeholder_last_name
*
* @return $this
*/
public function set_placeholder_last_name( $placeholder_last_name ) {
$this->set( 'placeholder_last_name', (string) $placeholder_last_name );
return $this;
}
}