Skip to content

Instantly share code, notes, and snippets.

@codehaiku
Created August 20, 2018 04:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codehaiku/546ea34c3b9a3eaf3b2ea72744b2dd23 to your computer and use it in GitHub Desktop.
Save codehaiku/546ea34c3b9a3eaf3b2ea72744b2dd23 to your computer and use it in GitHub Desktop.
bp-prevent-profile-update.php
add_action('bp_nouveau_get_submit_button', function(){
?>
<div class="alert alert-danger mg-top-10">
<p>
Changing email and password is currently disabled by the Administrator
of this demo. This is to prevent other users from changing the demo password and preventing everyone
to access this demo site. Sorry for any inconvenience.
</p>
</div>
<p>
<button type="button" disabled class="button-primary button btn">
Saving Disabled
</button>
</p>
<?php
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment