public function remove_hooks( $repo_api ) {
		remove_filter( 'extra_theme_headers', [ $this, 'add_headers' ] );
		remove_filter( 'extra_plugin_headers', [ $this, 'add_headers' ] );

		if ( $repo_api instanceof Bitbucket_API ) {
			$this->remove_authentication_hooks();
		}
	}
public function remove_hooks( $repo_api ) {
		remove_filter( 'extra_theme_headers', [ $this, 'add_headers' ] );
		remove_filter( 'extra_plugin_headers', [ $this, 'add_headers' ] );

		if ( $repo_api instanceof Bitbucket_API ) {
			$this->remove_authentication_hooks();
		}
	}
public function remove_hooks ( $ repo_api ) { remove_filter ( 'extra_theme_headers' , [ $ this , 'add_headers' ] ) ; remove_filter ( 'extra_plugin_headers' , [ $ this , 'add_headers' ] ) ; if ( $ repo_api instanceof Bitbucket_API ) { $ this -> remove_authentication_hooks ( ) ; } }
Remove hooks after use.

@param \stdClass $repo_api
Remove hooks after use .