>
    0 ): foreach ($headers as $column): ?>
$header_extended): ?>
Key Label Show Type
Key Label Show Type
>
*/ ?> $header, 'show' => true, 'type' => 'text' ); } update_option( "acui_columns_extended", $headers_extended ); return $headers_extended; } function extra_user_profile_fields( $user ) { $acui_restricted_fields = ACUIHelper()->get_restricted_fields(); $headers = get_option( "acui_columns" ); $restricted_lower = array_map( 'strtolower', $acui_restricted_fields ); $visible_columns = is_array( $headers ) ? array_filter( $headers, function( $col ) use ( $restricted_lower ) { return !in_array( strtolower( $col ), $restricted_lower ); } ) : array(); if( !empty( $visible_columns ) ): ?>

Extra profile information

ID, $column ) ) : ''; ?>
/>
get_restricted_fields(); $values_changed = array(); if( is_array( $headers ) && count( $headers ) > 0 ): $values = array(); foreach ( $headers as $column ){ if( in_array( strtolower( $column ), array_map( 'strtolower', $acui_restricted_fields ) ) ) continue; $column_sanitized = str_replace(" ", "_", $column ); if( isset( $post_filtered[ $column_sanitized ] ) ){ $old_value = get_user_meta( $user_id, $column, true ); if( $old_value != $post_filtered[ $column_sanitized ] ) $values_changed[ $column ] = $post_filtered[ $column_sanitized ]; update_user_meta( $user_id, $column, $post_filtered[ $column_sanitized ] ); $values[ $column ] = $post_filtered[ $column_sanitized ]; } } do_action( 'acui_columns_fields_saved', $values, $values_changed ); endif; } public static function save_settings( $form_data ){ if ( !isset( $form_data['security'] ) || !wp_verify_nonce( $form_data['security'], 'codection-security' ) ) { wp_die( __( 'Nonce check failed', 'import-users-from-csv-with-meta' ) ); } if( isset( $form_data['show-profile-fields-action'] ) && $form_data['show-profile-fields-action'] == 'update' ) update_option( "acui_show_profile_fields", isset( $form_data["show-profile-fields"] ) && $form_data["show-profile-fields"] == "yes" ); if( isset( $form_data['reset-profile-fields-action'] ) && $form_data['reset-profile-fields-action'] == 'reset' ) update_option( "acui_columns", array() ); } } new ACUI_Columns();