ホーム > クラス > クラス WP_User::remove_cap() 2014/12/10 2014/12/11 目次1 WP_User::remove_cap()2 定義ファイル :/blog/wp-includes/capabilities.phpWP_User::remove_cap()定義ファイル :/blog/wp-includes/capabilities.phpPHP public function remove_cap( $cap ) { if ( ! isset( $this->caps[$cap] ) ) return; unset( $this->caps[$cap] ); update_user_meta( $this->ID, $this->cap_key, $this->caps ); }123456 public function remove_cap( $cap ) { if ( ! isset( $this->caps[$cap] ) ) return; unset( $this->caps[$cap] ); update_user_meta( $this->ID, $this->cap_key, $this->caps ); } - クラス