Advertisement
fauzanjeg

Disable Access to Edit Account

Nov 23rd, 2021
531
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. /* Disable Access to Edit Account */
  2. add_filter( 'jnews_account_disable_edit_account', '__return_true', 99 );
  3. add_filter( 'jnews_account_disable_edit_account_msg', function() {
  4.     return '<h2 style="color:red;">Please Edit Account in Backend Dashboard.</h2>';
  5. } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement