|
@@ 114-117 (lines=4) @@
|
| 111 |
|
add_action( 'edit_user_profile_update', array( $this, 'save_user' ) ); |
| 112 |
|
add_action( 'user_register', array( $this, 'save_user' ) ); |
| 113 |
|
|
| 114 |
|
if ( $this->cmb->has_columns ) { |
| 115 |
|
add_filter( 'manage_users_columns', array( $this, 'register_column_headers' ) ); |
| 116 |
|
add_filter( 'manage_users_custom_column', array( $this, 'return_column_display' ), 10, 3 ); |
| 117 |
|
} |
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
public function term_hooks() { |
|
@@ 148-151 (lines=4) @@
|
| 145 |
|
add_action( "{$taxonomy}_add_form_fields", array( $this, 'term_metabox' ), $priority, 2 ); |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
if ( $this->cmb->has_columns ) { |
| 149 |
|
add_filter( "manage_edit-{$taxonomy}_columns", array( $this, 'register_column_headers' ) ); |
| 150 |
|
add_filter( "manage_{$taxonomy}_custom_column", array( $this, 'return_column_display' ), 10, 3 ); |
| 151 |
|
} |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
add_action( 'created_term', array( $this, 'save_term' ), 10, 3 ); |