Skip to content

Commit

Permalink
Change header text on bp-two-factor tables.
Browse files Browse the repository at this point in the history
See #3344.
  • Loading branch information
boonebgorges committed Jul 24, 2024
1 parent 52752f9 commit 5264c0d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wp-content/themes/openlab/js/bp-two-factor.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@
});
}

$('.two-factor-methods-table thead th.col-enabled').html('Enable');
$('.two-factor-methods-table thead th.col-name').html('');

});
})(jQuery);
8 changes: 8 additions & 0 deletions wp-content/themes/openlab/lib/two-factor.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ function( $providers ) {
);

function openlab_2fa_settings() {
wp_enqueue_script(
'openlab-bp-two-factor',
get_stylesheet_directory_uri() . '/js/bp-two-factor.js',
[],
OL_VERSION,
true
);

require CAC\BP2FA\DIR . '/pluggable.php';

// Modify user admin settings URL to use BP user settings page.
Expand Down
3 changes: 3 additions & 0 deletions wp-content/themes/openlab/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -12489,3 +12489,6 @@ p.private-membership-indicator {
.group-validate-form #site-options .error-container {
margin-bottom: 15px;
}
.two-factor-methods-table .col-primary {
display: none;
}

0 comments on commit 5264c0d

Please sign in to comment.