admin管理员组

文章数量:1394228

add_action( 'plugins_loaded', 'mytheme_remove_show_my_balance' );
function mytheme_remove_show_my_balance() {
  if ( !current_user_can( 'administrator' ) ) {
    remove_action( 'personal_options', array( $this, 'show_my_balance' ) );
  }
}

The above is what I've tried and the following two files in the plugin contain the action that I wish to remove or otherwise block or disable:

.php

.php

本文标签: Removing Plugin Action via Theme for Nonadmins