Conditions | 2 |
Paths | 2 |
Total Lines | 24 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | protected function actions_section() { |
||
32 | $html = ''; |
||
33 | |||
34 | $user_class = new Type\User; |
||
35 | $roles = $user_class->get_roles(); |
||
36 | |||
37 | foreach ( $roles as $role ) : |
||
38 | |||
39 | $html .= "<div class='test-data-cpt'>"; |
||
40 | |||
41 | $html .= "<h3>"; |
||
42 | |||
43 | $html .= "<span class='label'>" . esc_html( $role['name'] ) . "</span>"; |
||
44 | $html .= $this->build_button( 'create', $role['slug'], esc_html__( 'Create Users', 'dummybot' ) ); |
||
45 | $html .= $this->build_button( 'delete', $role['slug'], esc_html__( 'Delete Users', 'dummybot' ) ); |
||
46 | |||
47 | $html .= "</h3>"; |
||
48 | |||
49 | $html .= "</div>"; |
||
50 | |||
51 | endforeach; |
||
52 | |||
53 | return $html; |
||
54 | } |
||
55 | |||
57 |