|
@@ 137-140 (lines=4) @@
|
| 134 |
|
add_action( 'edit_user_profile_update', array( $this, 'save_user' ) ); |
| 135 |
|
add_action( 'user_register', array( $this, 'save_user' ) ); |
| 136 |
|
|
| 137 |
|
if ( $this->cmb->has_columns ) { |
| 138 |
|
add_filter( 'manage_users_columns', array( $this, 'register_column_headers' ) ); |
| 139 |
|
add_filter( 'manage_users_custom_column', array( $this, 'return_column_display' ), 10, 3 ); |
| 140 |
|
} |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
public function term_hooks() { |
|
@@ 171-174 (lines=4) @@
|
| 168 |
|
add_action( "{$taxonomy}_add_form_fields", array( $this, 'term_metabox' ), $priority, 2 ); |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
if ( $this->cmb->has_columns ) { |
| 172 |
|
add_filter( "manage_edit-{$taxonomy}_columns", array( $this, 'register_column_headers' ) ); |
| 173 |
|
add_filter( "manage_{$taxonomy}_custom_column", array( $this, 'return_column_display' ), 10, 3 ); |
| 174 |
|
} |
| 175 |
|
} |
| 176 |
|
|
| 177 |
|
add_action( 'created_term', array( $this, 'save_term' ), 10, 3 ); |